public interface Tree<T extends Tree<T>> extends Component<T>
Modifier and Type | Interface and Description |
---|---|
static class |
Tree.ActionKeys |
static class |
Tree.ActionPlacements |
static class |
Tree.ActionTypes |
static class |
Tree.Attributes |
static class |
Tree.ChildrenViewTypes |
static class |
Tree.EndpointTypes |
addAction, addAction, addComponent, addEndpoint, addEndpoint, apply, attribute, augmentationKey, classifier, clearConditionals, clearEndpoints, conditional, conditionals, description, description, findAction, findAction, findActions, findAttribute, findComponent, findComponent, findComponents, findEndpoint, findEndpoint, findEndpoints, get, get, getAction, getAction, getActions, getActionsList, getAttribute, getAttribute, getAttributes, getAugmentationKey, getClassifier, getComponent, getComponent, getComponents, getComponentsList, getConditionals, getDescription, getEndpoint, getEndpoint, getEndpoints, getEndpointsList, getId, getLabel, getOrder, getScope, getType, hasAction, hasAttribute, hasComponent, hasEndpoint, id, isAugmentable, isTranslatable, label, label, notTranslatable, order, removeAction, removeAttribute, removeComponent, removeEndpoint, scope, self, setActions, setAttributes, setAugmentationKey, setClassifier, setComponents, setConditionals, setDescription, setEndpoints, setId, setLabel, setOrder, setScope, setTranslatable, setType, translatable, translatable, type
compareTo
default T itemTypeLabel(InternationalizedMessage itemTypeLabel)
default Endpoint<?> getReadRootItemsEndpoint()
default T readRootItemsEndpoint(UnaryOperator<Endpoint<?>> fn)
default Endpoint<?> getReadChildrenItemsEndpoint()
default T readChildrenItemsEndpoint(UnaryOperator<Endpoint<?>> fn)
default Endpoint<?> getReadItemEndpoint()
default T readItemEndpoint(UnaryOperator<Endpoint<?>> fn)
default T readGridItemsEndpoint(PageableEndpoint<?> endpoint)
default PageableEndpoint<?> getReadGridItemsEndpoint()
default Optional<PageableEndpoint<?>> findReadGridItemsEndpoint()
default T readGridItemsEndpoint(UnaryOperator<PageableEndpoint<?>> fn)
default Endpoint<?> getReadAncestorsEndpoint()
default T readAncestorsEndpoint(UnaryOperator<Endpoint<?>> fn)
default Endpoint<?> getCreateItemEndpoint()
default T createItemEndpoint(UnaryOperator<Endpoint<?>> fn)
default Endpoint<?> getUpdateItemEndpoint()
default T updateItemEndpoint(UnaryOperator<Endpoint<?>> fn)
default Endpoint<?> getDeleteItemEndpoint()
default T deleteItemEndpoint(UnaryOperator<Endpoint<?>> fn)
default Endpoint<?> getUpdateTranslationsEndpoint()
default T updateTranslationsEndpoint(UnaryOperator<Endpoint<?>> fn)
default T createForm(UnaryOperator<FormView<?>> fn)
default FormView<?> getCreateForm()
default T updateForm(String id, UnaryOperator<FormView<?>> fn)
default T addGrid(TreeGridView<?> grid)
default T grid(UnaryOperator<TreeGridView<?>> fn)
default TreeGridView<?> getGrid()
default Optional<TreeGridView<?>> findGrid()
default T addSecondaryAction(Action<?> action)
Action
to display in a secondary position on the TreeView
.
Secondary actions will appear in the dropdowns of tree view navigator items and the editor
breadcrumbs. The Action.getType()
must be set.action
- The configured Action
default T secondaryAction(Action<?> action)
addSecondaryAction(Action)
action
- The configured Action
default T addSecondaryAction(String type, Action<?> action)
Action
to display in a secondary position on the TreeView
.
Secondary actions will appear in the dropdowns of tree view navigator items and the editor
breadcrumbs.type
- The type of the action
. See Tree.ActionTypes
action
- The configured Action
default T secondaryAction(String type, Action<?> action)
type
- The type of the action
. See Tree.ActionTypes
action
- The configured Action
default Action<?> getSecondaryAction(String type)
type
. Expects the action to be present.type
- The type of the action. See Tree.ActionTypes
IllegalArgumentException
- if the action is not founddefault Optional<Action<?>> findSecondaryAction(String type)
getSecondaryAction(String)
except that his returns the action wrapped in an
Optional
so that the action need not be present.type
- The type of the action. See Tree.ActionTypes
Optional.empty()
if not presentdefault T addGlobalAction(Action<?> action)
Action
to display in a global position on the TreeView
.
Global actions are usually visible via a dropdown in the TreeView Navigator title bar near
the "add" and "search" actions. The Action.getType()
must be set.action
- The configured Action
default T globalAction(Action<?> action)
addGlobalAction(Action)
action
- The configured Action
default T addGlobalAction(String type, Action<?> action)
Action
to display in a global position on the TreeView
.
Global actions are usually visible via a dropdown in the TreeView Navigator title bar near
the "add" and "search" actions. The Action.getType()
must be set.type
- The type of the action
. See Tree.ActionTypes
action
- The configured Action
default T globalAction(String type, Action<?> action)
addGlobalAction(String, Action)
type
- The type of the action
. See Tree.ActionTypes
action
- The configured Action
default Action<?> getGlobalAction(String type)
type
. Expects the action to be present.type
- The type of the action. See Tree.ActionTypes
IllegalArgumentException
- if the action is not founddefault T pageSize(int pageSize)
Copyright © 2021. All rights reserved.