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
KonstruktorenModifiziererKonstruktorBeschreibungprotectedLabelBuilder(String text) Constructs a new instance of the ControlBuilder class using the specified factory.protectedLabelBuilder(ObservableValue<String> text) Constructs a new instance of the ControlBuilder class using the specified factory. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbindFont(ObservableValue<com.dua3.utility.text.Font> font) bindFontFx(ObservableValue<Font> font) build()Build the Labeled.font(com.dua3.utility.text.Font font) Sets the font for the text node being built.Sets the font for the text node being built.Von Klasse geerbte Methoden com.dua3.utility.fx.controls.abstract_builders.LabeledBuilder
bindFxFont, bindText, graphic, graphic, textVon Klasse geerbte Methoden com.dua3.utility.fx.controls.abstract_builders.ControlBuilder
bindTooltip, tooltipVon Klasse geerbte Methoden com.dua3.utility.fx.controls.abstract_builders.NodeBuilder
apply, apply, bindDisabled, bindEnabled, disabled, prefHeight, prefSize, prefWidth, self
-
Konstruktordetails
-
LabelBuilder
Constructs a new instance of the ControlBuilder class using the specified factory. -
LabelBuilder
Constructs a new instance of the ControlBuilder class using the specified factory.
-
-
Methodendetails
-
build
Beschreibung aus Klasse kopiert:LabeledBuilderBuild the Labeled.- Setzt außer Kraft:
buildin KlasseLabeledBuilder<Label,LabelBuilder> - Gibt zurück:
- the new Labeled instance
-
font
Sets the font for the text node being built.- Setzt außer Kraft:
fontin KlasseLabeledBuilder<Label,LabelBuilder> - Parameter:
font- theFontto set for the text node- Gibt zurück:
- this TextBuilder instance for fluent method chaining
-
font
Sets the font for the text node being built.- Setzt außer Kraft:
fontin KlasseLabeledBuilder<Label,LabelBuilder> - Parameter:
font- theFontto set for the text node- Gibt zurück:
- this TextBuilder instance for fluent method chaining
-
bindFontFx
Binds theFontproperty of theTextnode to the specifiedObservableValue.This allows the font property of the node to dynamically update whenever the value in the provided observable changes.
- Parameter:
font- theObservableValueproviding the font to bind to the node's font property- Gibt zurück:
- this
TextBuilderinstance for method chaining
-
bindFont
Binds theFontproperty of theTextnode to the specifiedObservableValue.This allows the font property of the node to dynamically update whenever the value in the provided observable changes.
- Setzt außer Kraft:
bindFontin KlasseLabeledBuilder<Label,LabelBuilder> - Parameter:
font- theObservableValueproviding the font to bind to the node's font property- Gibt zurück:
- this
TextBuilderinstance for method chaining
-