Klasse LabelBuilder


public class LabelBuilder extends LabeledBuilder<Label,LabelBuilder>
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

    • LabelBuilder

      protected LabelBuilder(String text)
      Constructs a new instance of the ControlBuilder class using the specified factory.
    • LabelBuilder

      protected LabelBuilder(ObservableValue<String> text)
      Constructs a new instance of the ControlBuilder class using the specified factory.
  • Methodendetails

    • build

      public Label build()
      Beschreibung aus Klasse kopiert: LabeledBuilder
      Build the Labeled.
      Setzt außer Kraft:
      build in Klasse LabeledBuilder<Label,LabelBuilder>
      Gibt zurück:
      the new Labeled instance
    • font

      public LabelBuilder font(Font font)
      Sets the font for the text node being built.
      Setzt außer Kraft:
      font in Klasse LabeledBuilder<Label,LabelBuilder>
      Parameter:
      font - the Font to set for the text node
      Gibt zurück:
      this TextBuilder instance for fluent method chaining
    • font

      public LabelBuilder font(com.dua3.utility.text.Font font)
      Sets the font for the text node being built.
      Setzt außer Kraft:
      font in Klasse LabeledBuilder<Label,LabelBuilder>
      Parameter:
      font - the Font to set for the text node
      Gibt zurück:
      this TextBuilder instance for fluent method chaining
    • bindFontFx

      public LabelBuilder bindFontFx(ObservableValue<Font> font)
      Binds the Font property of the Text node to the specified ObservableValue.

      This allows the font property of the node to dynamically update whenever the value in the provided observable changes.

      Parameter:
      font - the ObservableValue providing the font to bind to the node's font property
      Gibt zurück:
      this TextBuilder instance for method chaining
    • bindFont

      public LabelBuilder bindFont(ObservableValue<com.dua3.utility.text.Font> font)
      Binds the Font property of the Text node to the specified ObservableValue.

      This allows the font property of the node to dynamically update whenever the value in the provided observable changes.

      Setzt außer Kraft:
      bindFont in Klasse LabeledBuilder<Label,LabelBuilder>
      Parameter:
      font - the ObservableValue providing the font to bind to the node's font property
      Gibt zurück:
      this TextBuilder instance for method chaining