Interface TreeView<V extends TreeView<V>>

All Superinterfaces:
AugmentableView<V>, Comparable<V>, Component<V>, Copyable<V>, PreviewableView<V>, Serializable, Trackable<V>, Tree<V>, View<V>
All Known Implementing Classes:
DefaultTreeView

public interface TreeView<V extends TreeView<V>> extends PreviewableView<V>, Trackable<V>, Tree<V>, View<V>, AugmentableView<V>
Represents the metadata for a top-level tree view. This is primarily used for managing highly hierarchical data sets such as categories.
Author:
Nick Crum (ncrum)
  • Method Details

    • addCloneAction

      default V addCloneAction(CloneModalFormAction<?> action)
      Configures this view with a secondary action that provides the ability to "clone" the entity. The use of this action will result in a modal form being provided with any fields configured on the action. This form is typically used so that a user has the opportunity to change up a limited set of properties on the cloned entity.
      Parameters:
      action - the clone action
      Returns:
      this
    • cloneAction

      default V cloneAction(UnaryOperator<CloneModalFormAction<?>> fn)
      Same purpose as addCloneAction(CloneModalFormAction) except that this takes a function to configure the clone action rather than taking an already configured action.
      Parameters:
      fn - a function that configures the action
      Returns:
      this
    • getCloneAction

      default CloneModalFormAction<?> getCloneAction()
    • findCloneAction

      default Optional<CloneModalFormAction<?>> findCloneAction()