Class ButtonDescription.Init<T extends ButtonDescription.Init<T>>

Direct Known Subclasses:
ButtonDescription.Builder
Enclosing class:
ButtonDescription

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

    • Init

      protected Init()
  • Method Details

    • build

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

      public T tooltip(StringProperty tooltip)
      Initializes value of the object's tooltip.
      Parameters:
      tooltip - a StringProperty or RegExpProperty.
      Returns:
      the description instance with the update state (builder pattern).
    • tooltip

      public T tooltip(String tooltip)
      Initializes value of the object's tooltip.
      Parameters:
      tooltip - the value of the object's tooltip.
      Returns:
      the description instance with the update state (builder pattern).
    • containerName

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

      public T containerName(String containerName)
      Initializes name of the parent object.
      Parameters:
      containerName - the name of the parent object.
      Returns:
      the description instance with the update state (builder pattern).
    • text

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

      public T text(String text)
      Initializes text associated with the object.
      Parameters:
      text - the text associated with the object.
      Returns:
      the description instance with the update state (builder pattern).
    • enabled

      public T enabled(Boolean enabled)
      Initializes whether the object can accept user input.
      Parameters:
      enabled - true to set as enabled.
      Returns:
      the description instance with the update state (builder pattern).