public class CmsAppCategoryNode extends java.lang.Object implements I_CmsHasOrder
Contains a list of child nodes and a list of apps, which are the leaves of the tree. Note that the list of children is not initialized after construction, it has to be filled manually.
| Constructor and Description |
|---|
CmsAppCategoryNode(I_CmsAppCategory appCategory)
Creates a new category node for the given category.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAppConfiguration(I_CmsWorkplaceAppConfiguration appConfig)
Adds an app configuration.
|
void |
addChild(CmsAppCategoryNode node)
Adds a child node.
|
java.util.List<I_CmsWorkplaceAppConfiguration> |
getAppConfigurations()
Gets the app configurations for this category.
|
I_CmsAppCategory |
getCategory()
Gets the app category data for this node.
|
java.util.List<CmsAppCategoryNode> |
getChildren()
Gets the child nodes of this node.
|
int |
getOrder()
Gets an integer used to sort items.
|
void |
removeApplessSubtrees()
Recursively removes subtrees containing no app configurations.
|
void |
sort()
Sorts the child nodes *and* the apps of this node by their order.
|
void |
sortRecursively()
Recursively calls sort on all descendants of this node.
|
public CmsAppCategoryNode(I_CmsAppCategory appCategory)
appCategory - the category datapublic void addAppConfiguration(I_CmsWorkplaceAppConfiguration appConfig)
appConfig - the app configuration to addpublic void addChild(CmsAppCategoryNode node)
node - the child nodepublic java.util.List<I_CmsWorkplaceAppConfiguration> getAppConfigurations()
public I_CmsAppCategory getCategory()
public java.util.List<CmsAppCategoryNode> getChildren()
public int getOrder()
I_CmsHasOrdergetOrder in interface I_CmsHasOrderI_CmsHasOrder.getOrder()public void removeApplessSubtrees()
public void sort()
public void sortRecursively()