Class EditorDescription.Init<T extends EditorDescription.Init<T>>

Direct Known Subclasses:
EditorDescription.Builder
Enclosing class:
EditorDescription

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

    • Init

      protected Init()
  • Method Details

    • build

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

      public T text(StringProperty text)
      Initializes the text of the editor.
      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 editor.
      Parameters:
      text - the text.
      Returns:
      the description instance with the update state (builder pattern).
    • enabled

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