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 classstatic final classstatic final classstatic final classstatic final classstatic final class -
Method Summary
Modifier and TypeMethodDescriptiondefault TaddCreateForm(FormView<?> form) default TaddGlobalAction(Action<?> action) default TaddGlobalAction(String type, Action<?> action) default TaddGrid(TreeGridView<?> grid) default TaddSecondaryAction(Action<?> action) default TaddSecondaryAction(String type, Action<?> action) default TaddUpdateForm(String id, FormView<?> form) default TancestorsListKey(String ancestorsListKey) default TcreateForm(UnaryOperator<FormView<?>> fn) default TcreateItemEndpoint(Endpoint<?> endpoint) default TcreateItemEndpoint(UnaryOperator<Endpoint<?>> fn) default TcreateItemScope(String scope) default TcreateItemUrl(String url) default TcreateItemUrl(String url, String scope) default TdeleteItemEndpoint(Endpoint<?> endpoint) default TdeleteItemEndpoint(UnaryOperator<Endpoint<?>> fn) default TdeleteItemScope(String scope) default TdeleteItemUrl(String url) default TdeleteItemUrl(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 anOptionalso 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 TglobalAction(Action<?> action) Same asaddGlobalAction(Action)default TglobalAction(String type, Action<?> action) Same asaddGlobalAction(String, Action)default Tgrid(UnaryOperator<TreeGridView<?>> fn) default TitemDisplayNameKey(String itemDisplayNameKey) default Tdefault TitemParentIdKey(String itemParentIdKey) default TitemTypeLabel(InternationalizedMessage itemTypeLabel) default TitemTypeLabel(String itemTypeLabelKey) default TpageSize(int pageSize) default TreadAncestorsEndpoint(Endpoint<?> endpoint) default Tdefault TreadAncestorsScope(String scope) default TreadAncestorsUrl(String url) default TreadAncestorsUrl(String url, String scope) default TreadChildrenItemsEndpoint(Endpoint<?> endpoint) default Tdefault TreadChildrenItemsScope(String scope) default Tdefault TreadChildrenItemsUrl(String url, String scope) default TreadGridItemsEndpoint(PageableEndpoint<?> endpoint) default Tdefault TreadGridItemsScope(String scope) default TreadGridItemsUrl(String url) default TreadGridItemsUrl(String url, String scope) default TreadItemEndpoint(Endpoint<?> endpoint) default TreadItemEndpoint(UnaryOperator<Endpoint<?>> fn) default TreadItemScope(String scope) default TreadItemUrl(String url) default TreadItemUrl(String url, String scope) default TreadRootItemsEndpoint(Endpoint<?> endpoint) default Tdefault TreadRootItemsScope(String scope) default TreadRootItemsUrl(String url) default TreadRootItemsUrl(String url, String scope) default TsecondaryAction(Action<?> action) Same asaddSecondaryAction(Action)default TsecondaryAction(String type, Action<?> action) default TupdateForm(String id, UnaryOperator<FormView<?>> fn) default TupdateItemEndpoint(Endpoint<?> endpoint) default TupdateItemEndpoint(UnaryOperator<Endpoint<?>> fn) default TupdateItemScope(String scope) default TupdateItemUrl(String url) default TupdateItemUrl(String url, String scope) default TupdateTranslationsEndpoint(Endpoint<?> endpoint) default Tdefault TupdateTranslationsScope(String scope) default Tdefault TupdateTranslationsUrl(String url, String scope) Methods inherited from interface java.lang.Comparable
compareToMethods 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, 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
-
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 configuredActionto 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 configuredActionto 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.ActionTypesaction- The configuredAction- Returns:
- this
-
secondaryAction
- Parameters:
type- The type of theaction. SeeTree.ActionTypesaction- 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 anOptionalso 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 configuredActionto 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 configuredActionto 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.ActionTypesaction- The configuredAction- Returns:
- this
-
globalAction
Same asaddGlobalAction(String, Action)- Parameters:
type- The type of theaction. SeeTree.ActionTypesaction- 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
-