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 UiObjectBaseDescription.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 DescriptionBase.Init<T extends EditorDescription.Init<T>>
      Returns:
      The built description instance (builder pattern).
    • readOnly

      public T readOnly(Boolean isReadOnly)
      Initializes whether the object is read only.
      Parameters:
      isReadOnly - true if read only.
      Returns:
      the description instance with the updated state (builder pattern).
    • text

      public T text(StringProperty text)
      Initializes the editor's text.
      Parameters:
      text - a StringProperty or RegExpProperty.
      Returns:
      the description instance with the updated state (builder pattern).
    • text

      public T text(String text)
      Initializes the editor's text.
      Parameters:
      text - the text.
      Returns:
      the description instance with the updated state (builder pattern).