Class EditFieldDescription.Init<T extends EditFieldDescription.Init<T>>

Direct Known Subclasses:
EditFieldDescription.Builder, EditFieldDescription.Init, NumericFieldDescription.Init
Enclosing class:
EditFieldDescription

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

    • Init

      protected Init()
  • Method Details

    • build

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

      public T defaultValue(String defaultValue)
      Initializes the default value that will be presented in the edit field.
      Parameters:
      defaultValue - the default value that will be presented in the edit field.
      Returns:
      the description instance with the update state (builder pattern).
    • defaultValue

      public T defaultValue(StringProperty defaultValue)
      Initializes the default value that will be presented in the edit field.
      Parameters:
      defaultValue - a StringProperty (or RegExpProperty) representing the default value that will be presented in the edit field.
      Returns:
      the description instance with the update state (builder pattern).
    • maxLength

      public T maxLength(Integer maxLength)
      Initializes the max number of characters that can be entered in the input field.
      Parameters:
      maxLength - the max number of characters that can be entered in the input field.
      Returns:
      the description instance with the update state (builder pattern).
    • pattern

      public T pattern(String pattern)
      Initializes the input pattern, for example, a phone number.
      Parameters:
      pattern - the pattern of the input.
      Returns:
      the description instance with the update state (builder pattern).
    • pattern

      public T pattern(StringProperty pattern)
      Initializes the input pattern, for example, a phone number.
      Parameters:
      pattern - a StringProperty (or RegExpProperty) representing the pattern of the input.
      Returns:
      the description instance with the update state (builder pattern).
    • rowsCount

      public T rowsCount(Integer rowsCount)
      Initializes the number of rows for multi-line objects.
      Parameters:
      rowsCount - the number of rows for multi-line objects.
      Returns:
      the description instance with the update state (builder pattern).