Klasse LabeledBuilder<N extends Labeled,NN extends LabeledBuilder<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>
com.dua3.utility.fx.controls.abstract_builders.LabeledBuilder<N,NN>
- Typparameter:
N- the type of Labeled node to be builtNN- the type of the concrete builder
- Bekannte direkte Unterklassen:
ButtonBaseBuilder,LabelBuilder
public abstract class LabeledBuilder<N extends Labeled,NN extends LabeledBuilder<N,NN>>
extends ControlBuilder<N,NN>
LabeledBuilder is an abstract base class for building instances of Labeled nodes.
It provides a fluent API for configuring properties such as text and graphics,
allowing subclasses to create customized Labeled instances.
-
Konstruktorübersicht
KonstruktorenModifiziererKonstruktorBeschreibungprotectedLabeledBuilder(Supplier<? extends N> factory) Constructor. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbindFont(ObservableValue<com.dua3.utility.text.Font> font) bindFxFont(ObservableValue<Font> font) bindText(ObservableValue<String> text) Set text for the Labeled.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.graphic(ObservableValue<Node> graphic) Set the graphic for the Labeled.Set the graphic for the Labeled.Set text for the Labeled.Von 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
-
LabeledBuilder
Constructor.- Parameter:
factory- the factory method for Labeled instances
-
-
Methodendetails
-
build
Build the Labeled.- Setzt außer Kraft:
buildin KlasseControlBuilder<N extends Labeled,NN extends LabeledBuilder<N, NN>> - Gibt zurück:
- the new Labeled instance
-
text
Set text for the Labeled.- Parameter:
text- the text- Gibt zurück:
- this LabeledBuilder instance
-
bindText
Set text for the Labeled.- Parameter:
text- the text- Gibt zurück:
- this LabeledBuilder instance
-
graphic
Set the graphic for the Labeled.- Parameter:
graphic- the graphic to use- Gibt zurück:
- this LabeledBuilder instance
-
graphic
Set the graphic for the Labeled.- Parameter:
graphic- the graphic to use- Gibt zurück:
- this LabeledBuilder instance
-
font
Sets the font for the text node being built.- 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.- Parameter:
font- theFontto set for the text node- Gibt zurück:
- this TextBuilder instance for fluent method chaining
-
bindFxFont
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
LabelBuilderinstance 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.
- Parameter:
font- theObservableValueproviding the font to bind to the node's font property- Gibt zurück:
- this
LabelBuilderinstance for method chaining
-