Class EditFieldBaseDescription.Init<T extends EditFieldBaseDescription.Init<T>>

Direct Known Subclasses:
EditFieldDescription.Init, FileFieldDescription.Init
Enclosing class:
EditFieldBaseDescription

protected abstract static class EditFieldBaseDescription.Init<T extends EditFieldBaseDescription.Init<T>> extends FormFieldDescription.Init<T>
Helper class for derived Builder classes.
  • Constructor Details

    • Init

      protected Init()
  • Method Details

    • value

      public T value(String value)
      Initializes the text in the field.
      Parameters:
      value - the text in the field.
      Returns:
      the description instance with the update state (builder pattern).
    • value

      public T value(StringProperty value)
      Initializes the text in the field.
      Parameters:
      value - a StringProperty (or RegExpProperty) representing the text in the field.
      Returns:
      the description instance with the update state (builder pattern).
    • placeholder

      public T placeholder(String placeholder)
      Initializes the hint text that is displayed in the edit box until a value is entered into it.
      Parameters:
      placeholder - the hint text that is displayed in the edit box until a value is entered into it.
      Returns:
      the description instance with the update state (builder pattern).
    • placeholder

      public T placeholder(StringProperty placeholder)
      Initializes the hint text that is displayed in the edit box until a value is entered into it.
      Parameters:
      placeholder - a StringProperty (or RegExpProperty) representing the hint text that is displayed in the edit box until a value is entered into it.
      Returns:
      the description instance with the update state (builder pattern).
    • readOnly

      public T readOnly(Boolean readOnly)
      Initializes whether or not the control is read only.
      Parameters:
      readOnly - whether or not the control is read only.
      Returns:
      the description instance with the update state (builder pattern).
    • required

      public T required(Boolean required)
      Initializes whether or not the field is mandatory in the form.
      Parameters:
      required - whether or not the field is mandatory in the form.
      Returns:
      the description instance with the update state (builder pattern).
    • maxCharsInLine

      public T maxCharsInLine(Integer maxCharsInLine)
      Initializes the number of characters that will be presented in each row.
      Parameters:
      maxCharsInLine - the number of characters that will be presented in each row.
      Returns:
      the description instance with the update state (builder pattern).
    • enabled

      public T enabled(Boolean isEnabled)
      Initializes whether the object is enabled.
      Parameters:
      isEnabled - true if the object is enabled.
      Returns:
      the description instance with the update state (builder pattern).