Class LabelDescription.Init<T extends LabelDescription.Init<T>>

Direct Known Subclasses:
LabelDescription.Builder
Enclosing class:
LabelDescription

protected abstract static class LabelDescription.Init<T extends LabelDescription.Init<T>> extends ElementDescription.Init<T>
Helper class for LabelDescription.Builder.
  • Constructor Details

    • Init

      protected Init()
  • Method Details

    • build

      public LabelDescription build()
      Description copied from class: DescriptionBase.Init
      Returns the built description instance (builder pattern).
      Overrides:
      build in class ElementDescription.Init<T extends LabelDescription.Init<T>>
      Returns:
      The built description instance (builder pattern).
    • text

      public T text(StringProperty text)
      Initializes the text of the label.
      Parameters:
      text - a StringProperty or RegExpProperty.
      Returns:
      the description instance with the update state (builder pattern).
    • text

      public T text(String text)
      Initializes the text of the label.
      Parameters:
      text - the text.
      Returns:
      the description instance with the update state (builder pattern).
    • highlighted

      public T highlighted(Boolean isHighlighted)
      Initializes whether the label is highlighted.
      Parameters:
      isHighlighted - true to set as highlighted.
      Returns:
      the description instance with the update state (builder pattern).
    • iconName

      public T iconName(StringProperty iconName)
      Initializes the name of the icon used in the label.
      Parameters:
      iconName - a StringProperty or RegExpProperty.
      Returns:
      the description instance with the update state (builder pattern).
    • iconName

      public T iconName(String iconName)
      Initializes the name of the icon used in the label.
      Parameters:
      iconName - the name of the icon.
      Returns:
      the description instance with the update state (builder pattern).
    • maxLength

      public T maxLength(Integer maxLength)
      Initializes the maximum number of characters that can be displayed in the label.
      Parameters:
      maxLength - the maximum number of characters.
      Returns:
      the description instance with the update state (builder pattern).
    • numerical

      public T numerical(Boolean isNumerical)
      Initializes whether the label is a numerical field.
      Parameters:
      isNumerical - true to set as numerical field.
      Returns:
      the description instance with the update state (builder pattern).
    • relativeId

      public T relativeId(StringProperty id)
      Initializes the object's unique identifier relative to the parent window ID.
      Parameters:
      id - a StringProperty or RegExpProperty.
      Returns:
      the description instance with the update state (builder pattern).
    • relativeId

      public T relativeId(String id)
      Initializes the object's unique identifier relative to the parent window ID.
      Parameters:
      id - the object's unique identifier.
      Returns:
      the description instance with the update state (builder pattern).