Klasse ControlBuilder<N extends Control,NN extends ControlBuilder<N,NN>>

java.lang.Object
com.dua3.utility.fx.controls.abstract_builders.NodeBuilder<N,NN>
com.dua3.utility.fx.controls.abstract_builders.ControlBuilder<N,NN>
Typparameter:
N - the type of node to be built
NN - the type of the concrete builder
Bekannte direkte Unterklassen:
LabeledBuilder

public abstract class ControlBuilder<N extends Control,NN extends ControlBuilder<N,NN>> extends NodeBuilder<N,NN>
An abstract base class for building nodes, providing a fluent API for configuring and creating instances of the node type specified by the generic parameter N.
  • Konstruktordetails

    • ControlBuilder

      protected ControlBuilder(Supplier<? extends N> factory)
      Constructs a new instance of the ControlBuilder class using the specified factory.
      Parameter:
      factory - the supplier that provides a new instance of the node type to be built
  • Methodendetails

    • build

      public N build()
      Build the Control.
      Setzt außer Kraft:
      build in Klasse NodeBuilder<N extends Control,NN extends ControlBuilder<N,NN>>
      Gibt zurück:
      new Control instance
    • tooltip

      public NN tooltip(String tooltip)
      Set the tooltip for the control.
      Parameter:
      tooltip - the tooltip text
      Gibt zurück:
      this ControlBuilder instance
    • bindTooltip

      public NN bindTooltip(ObservableValue<String> tooltip)
      Set the tooltip for the control.
      Parameter:
      tooltip - the tooltip text
      Gibt zurück:
      this ControlBuilder instance