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 builtNN- 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.-
Konstruktorübersicht
KonstruktorenModifiziererKonstruktorBeschreibungprotectedControlBuilder(Supplier<? extends N> factory) Constructs a new instance of the ControlBuilder class using the specified factory. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbindTooltip(ObservableValue<String> tooltip) Set the tooltip for the control.build()Build the Control.Set the tooltip for the control.Von Klasse geerbte Methoden com.dua3.utility.fx.controls.abstract_builders.NodeBuilder
apply, apply, bindDisabled, bindEnabled, disabled, prefHeight, prefSize, prefWidth, self
-
Konstruktordetails
-
ControlBuilder
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
Build the Control.- Setzt außer Kraft:
buildin KlasseNodeBuilder<N extends Control,NN extends ControlBuilder<N, NN>> - Gibt zurück:
- new Control instance
-
tooltip
Set the tooltip for the control.- Parameter:
tooltip- the tooltip text- Gibt zurück:
- this ControlBuilder instance
-
bindTooltip
Set the tooltip for the control.- Parameter:
tooltip- the tooltip text- Gibt zurück:
- this ControlBuilder instance
-