Class ComboBoxDescription.Init<T extends ComboBoxDescription.Init<T>>

Direct Known Subclasses:
ComboBoxDescription.Builder
Enclosing class:
ComboBoxDescription

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

    • Init

      protected Init()
  • Method Details

    • build

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

      public T selectedItem(String selectedItem)
      Initializes the selected item in the combo box
      Parameters:
      selectedItem - the selected item.
      Returns:
      the description instance with the update state (builder pattern)
    • selectedItem

      public T selectedItem(StringProperty selectedItem)
      Initializes the selected item in the combo box.
      Parameters:
      selectedItem - a StringProperty or RegExpProperty.
      Returns:
      the description instance with the update state (builder pattern)
    • enabled

      public T enabled(Boolean isEnabled)
      Initializes whether the object can accept user input.
      Parameters:
      isEnabled - true if enabled.
      Returns:
      the description instance with the update state (builder pattern).
    • items

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

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