Class TreeViewDescription.Init<T extends TreeViewDescription.Init<T>>

Direct Known Subclasses:
TreeViewDescription.Builder
Enclosing class:
TreeViewDescription

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

    • Init

      protected Init()
  • Method Details

    • build

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

      public T enabled(Boolean enabled)
      Initializes whether the object is enabled.
      Parameters:
      enabled - true to set as enabled.
      Returns:
      the description instance with the update state (builder pattern).
    • treeType

      public T treeType(TreeType type)
      Initializes the type of the tree.
      Parameters:
      type - the type of the tree.
      Returns:
      the description instance with the update state (builder pattern).
    • selectionMode

      public T selectionMode(TreeSelectionMode mode)
      Initializes which selections can be made.
      Parameters:
      mode - the selection mode.
      Returns:
      the description instance with the update state (builder pattern).
    • selectedItem

      public T selectedItem(String selectedItem)
      Initializes the selected item in the tree.
      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 tree.
      Parameters:
      selectedItem - a StringProperty or RegExpProperty.
      Returns:
      the description instance with the update state (builder pattern)
    • selectedNodePath

      public T selectedNodePath(String selectedNodePath)
      Initializes the path of the selected node in the tree
      Parameters:
      selectedNodePath - the path of the selected node.
      Returns:
      the description instance with the update state (builder pattern)
    • selectedNodePath

      public T selectedNodePath(StringProperty selectedNodePath)
      Initializes the path of the selected node in the tree.
      Parameters:
      selectedNodePath - a StringProperty or RegExpProperty.
      Returns:
      the description instance with the update state (builder pattern)