Interface Tree<T extends Tree<T>>
- All Superinterfaces:
Comparable<T>
,Component<T>
,Copyable<T>
,Serializable
- All Known Subinterfaces:
TreeExternal<E>
,TreeView<V>
- All Known Implementing Classes:
DefaultTreeExternal
,DefaultTreeView
Represents the metadata for a tree component. This is primarily used for managing highly
hierarchical data sets such as categories.
- Author:
- Nick Crum (ncrum)
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
static final class
static final class
static final class
static final class
static final class
-
Method Summary
Modifier and TypeMethodDescriptiondefault T
addCreateForm
(FormView<?> form) default T
addGlobalAction
(Action<?> action) default T
addGlobalAction
(String type, Action<?> action) default T
addGrid
(TreeGridView<?> grid) default T
addSecondaryAction
(Action<?> action) default T
addSecondaryAction
(String type, Action<?> action) default T
addUpdateForm
(String id, FormView<?> form) default T
ancestorsListKey
(String ancestorsListKey) default T
createForm
(UnaryOperator<FormView<?>> fn) default T
createItemEndpoint
(Endpoint<?> endpoint) default T
createItemEndpoint
(UnaryOperator<Endpoint<?>> fn) default T
createItemScope
(String scope) default T
createItemUrl
(String url) default T
createItemUrl
(String url, String scope) default T
deleteItemEndpoint
(Endpoint<?> endpoint) default T
deleteItemEndpoint
(UnaryOperator<Endpoint<?>> fn) default T
deleteItemScope
(String scope) default T
deleteItemUrl
(String url) default T
deleteItemUrl
(String url, String scope) findGlobalAction
(String type) default Optional<TreeGridView<?>>
findGrid()
default Optional<PageableEndpoint<?>>
findSecondaryAction
(String type) Same asgetSecondaryAction(String)
except that his returns the action wrapped in anOptional
so that the action need not be present.findUpdateForm
(String id) default FormView<?>
default Endpoint<?>
default Endpoint<?>
default FormView<?>
default Action<?>
getGlobalAction
(String type) Finds the global action matching the giventype
.default TreeGridView<?>
getGrid()
default Endpoint<?>
default Endpoint<?>
default PageableEndpoint<?>
default Endpoint<?>
default Endpoint<?>
default Action<?>
getSecondaryAction
(String type) Finds the secondary action matching the giventype
.default FormView<?>
getUpdateForm
(String id) default Endpoint<?>
default Endpoint<?>
default T
globalAction
(Action<?> action) Same asaddGlobalAction(Action)
default T
globalAction
(String type, Action<?> action) Same asaddGlobalAction(String, Action)
default T
grid
(UnaryOperator<TreeGridView<?>> fn) default T
itemDisplayNameKey
(String itemDisplayNameKey) default T
default T
itemParentIdKey
(String itemParentIdKey) default T
itemTypeLabel
(InternationalizedMessage itemTypeLabel) default T
itemTypeLabel
(String itemTypeLabelKey) default T
pageSize
(int pageSize) default T
readAncestorsEndpoint
(Endpoint<?> endpoint) default T
default T
readAncestorsScope
(String scope) default T
readAncestorsUrl
(String url) default T
readAncestorsUrl
(String url, String scope) default T
readChildrenItemsEndpoint
(Endpoint<?> endpoint) default T
default T
readChildrenItemsScope
(String scope) default T
default T
readChildrenItemsUrl
(String url, String scope) default T
readGridItemsEndpoint
(PageableEndpoint<?> endpoint) default T
default T
readGridItemsScope
(String scope) default T
readGridItemsUrl
(String url) default T
readGridItemsUrl
(String url, String scope) default T
readItemEndpoint
(Endpoint<?> endpoint) default T
readItemEndpoint
(UnaryOperator<Endpoint<?>> fn) default T
readItemScope
(String scope) default T
readItemUrl
(String url) default T
readItemUrl
(String url, String scope) default T
readRootItemsEndpoint
(Endpoint<?> endpoint) default T
default T
readRootItemsScope
(String scope) default T
readRootItemsUrl
(String url) default T
readRootItemsUrl
(String url, String scope) default T
secondaryAction
(Action<?> action) Same asaddSecondaryAction(Action)
default T
secondaryAction
(String type, Action<?> action) default T
updateForm
(String id, UnaryOperator<FormView<?>> fn) default T
updateItemEndpoint
(Endpoint<?> endpoint) default T
updateItemEndpoint
(UnaryOperator<Endpoint<?>> fn) default T
updateItemScope
(String scope) default T
updateItemUrl
(String url) default T
updateItemUrl
(String url, String scope) default T
updateTranslationsEndpoint
(Endpoint<?> endpoint) default T
default T
updateTranslationsScope
(String scope) default T
default T
updateTranslationsUrl
(String url, String scope) Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface com.broadleafcommerce.metadata.dsl.core.Component
addAction, addAction, addComponent, addEndpoint, addEndpoint, apply, attribute, augmentationKey, classifier, clearConditionals, clearEndpoints, conditional, conditionals, description, description, findAction, findAction, findActions, findAttribute, findAttribute, findComponent, findComponent, findComponents, findEndpoint, 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
-
Method Details
-
ancestorsListKey
-
itemDisplayNameKey
-
itemIdKey
-
itemParentIdKey
-
itemTypeLabel
-
itemTypeLabel
-
readRootItemsEndpoint
-
getReadRootItemsEndpoint
-
readRootItemsEndpoint
-
readRootItemsUrl
-
readRootItemsScope
-
readRootItemsUrl
-
readChildrenItemsEndpoint
-
getReadChildrenItemsEndpoint
-
readChildrenItemsEndpoint
-
readChildrenItemsUrl
-
readChildrenItemsScope
-
readChildrenItemsUrl
-
readItemEndpoint
-
getReadItemEndpoint
-
readItemEndpoint
-
readItemUrl
-
readItemScope
-
readItemUrl
-
readGridItemsEndpoint
-
getReadGridItemsEndpoint
-
findReadGridItemsEndpoint
-
readGridItemsEndpoint
-
readGridItemsUrl
-
readGridItemsScope
-
readGridItemsUrl
-
readAncestorsEndpoint
-
getReadAncestorsEndpoint
-
readAncestorsEndpoint
-
readAncestorsUrl
-
readAncestorsScope
-
readAncestorsUrl
-
createItemEndpoint
-
getCreateItemEndpoint
-
createItemEndpoint
-
createItemUrl
-
createItemScope
-
createItemUrl
-
updateItemEndpoint
-
getUpdateItemEndpoint
-
updateItemEndpoint
-
updateItemUrl
-
updateItemScope
-
updateItemUrl
-
deleteItemEndpoint
-
getDeleteItemEndpoint
-
deleteItemEndpoint
-
deleteItemUrl
-
deleteItemScope
-
deleteItemUrl
-
updateTranslationsEndpoint
-
getUpdateTranslationsEndpoint
-
updateTranslationsEndpoint
-
updateTranslationsUrl
-
updateTranslationsScope
-
updateTranslationsUrl
-
addCreateForm
-
createForm
-
getCreateForm
-
findCreateForm
-
addUpdateForm
-
updateForm
-
getUpdateForm
-
findUpdateForm
-
getForm
-
findForm
-
addGrid
-
grid
-
getGrid
-
findGrid
-
addSecondaryAction
Adds a configuredAction
to display in a secondary position on theTreeView
. Secondary actions will appear in the dropdowns of tree view navigator items and the editor breadcrumbs. TheAction.getType()
must be set.- Parameters:
action
- The configuredAction
- Returns:
- this
-
secondaryAction
Same asaddSecondaryAction(Action)
- Parameters:
action
- The configuredAction
- Returns:
- this
-
addSecondaryAction
Adds a configuredAction
to display in a secondary position on theTreeView
. Secondary actions will appear in the dropdowns of tree view navigator items and the editor breadcrumbs.- Parameters:
type
- The type of theaction
. SeeTree.ActionTypes
action
- The configuredAction
- Returns:
- this
-
secondaryAction
- Parameters:
type
- The type of theaction
. SeeTree.ActionTypes
action
- The configuredAction
- Returns:
- this
-
getSecondaryAction
Finds the secondary action matching the giventype
. Expects the action to be present.- Parameters:
type
- The type of the action. SeeTree.ActionTypes
- Returns:
- the requested action
- Throws:
IllegalArgumentException
- if the action is not found
-
findSecondaryAction
Same asgetSecondaryAction(String)
except that his returns the action wrapped in anOptional
so that the action need not be present.- Parameters:
type
- The type of the action. SeeTree.ActionTypes
- Returns:
- the requested action or
Optional.empty()
if not present
-
addGlobalAction
Adds a configuredAction
to display in a global position on theTreeView
. Global actions are usually visible via a dropdown in the TreeView Navigator title bar near the "add" and "search" actions. TheAction.getType()
must be set.- Parameters:
action
- The configuredAction
- Returns:
- this
-
globalAction
Same asaddGlobalAction(Action)
- Parameters:
action
- The configuredAction
- Returns:
- this
-
addGlobalAction
Adds a configuredAction
to display in a global position on theTreeView
. Global actions are usually visible via a dropdown in the TreeView Navigator title bar near the "add" and "search" actions. TheAction.getType()
must be set.- Parameters:
type
- The type of theaction
. SeeTree.ActionTypes
action
- The configuredAction
- Returns:
- this
-
globalAction
Same asaddGlobalAction(String, Action)
- Parameters:
type
- The type of theaction
. SeeTree.ActionTypes
action
- The configuredAction
- Returns:
- this
-
getGlobalAction
Finds the global action matching the giventype
. Expects the action to be present.- Parameters:
type
- The type of the action. SeeTree.ActionTypes
- Returns:
- the requested action
- Throws:
IllegalArgumentException
- if the action is not found
-
findGlobalAction
-
pageSize
-