Class ListBoxDescription.Init<T extends ListBoxDescription.Init<T>>

Direct Known Subclasses:
ListBoxDescription.Builder, ListBoxDescription.Init
Enclosing class:
ListBoxDescription

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

    • Init

      protected Init()
  • Method Details

    • build

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

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

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

      public T defaultValue(String defaultValue)
      Initializes the initial text value, which is set when the object is reset.
      Parameters:
      defaultValue - the initial text value, which is set when the object is reset.
      Returns:
      the description instance with the update state (builder pattern).
    • defaultValue

      public T defaultValue(StringProperty defaultValue)
      Initializes the initial text value, which is set when the object is reset.
      Parameters:
      defaultValue - a StringProperty (or RegExpProperty) representing the initial text value, which is set when the object is reset.
      Returns:
      the description instance with the update state (builder pattern).
    • enabled

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

      public T multiple(Boolean isMultiple)
      Initializes whether the user can select multiple choices.
      Parameters:
      isMultiple - true if the user can select multiple choices.
      Returns:
      the description instance with the update state (builder pattern).
    • visibleItemsCount

      public T visibleItemsCount(Integer visibleItemsCount)
      Initializes the number of items that are displayed in the list box.
      Parameters:
      visibleItemsCount - the number of items that are displayed in the list box.
      Returns:
      the description instance with the update state (builder pattern).
    • items

      public T items(String[] items)
      Initializes the items in the list.
      Parameters:
      items - the items in the list.
      Returns:
      the description instance with the update state (builder pattern).
    • selectedItems

      public T selectedItems(String[] selectedItems)
      Initializes the selected items in the list.
      Parameters:
      selectedItems - the selected items in the list.
      Returns:
      the description instance with the update state (builder pattern).
    • itemsCount

      public T itemsCount(Integer count)
      Initializes the number of items in the list.
      Parameters:
      count - the number of items in the list.
      Returns:
      the description instance with the update state (builder pattern).
    • firstItem

      public T firstItem(String firstItem)
      Initializes the first item in the list of items in the list.
      Parameters:
      firstItem - the first item in the list of items in the list.
      Returns:
      the description instance with the update state (builder pattern).
    • firstItem

      public T firstItem(StringProperty firstItem)
      Initializes the first item in the list of items in the list.
      Parameters:
      firstItem - a StringProperty (or RegExpProperty) representing the first item in the list of items in the list.
      Returns:
      the description instance with the update state (builder pattern).