Package de.uplanet.lucy.server.menu.rt
Class AbstractContainerMenuItem
- java.lang.Object
-
- de.uplanet.lucy.server.menu.rt.AbstractMenuItem
-
- de.uplanet.lucy.server.menu.rt.AbstractContainerMenuItem
-
- Direct Known Subclasses:
CmsMenuItem
,ContainerMenuItem
,RootMenuItem
,TopLevelGroupMenuItem
public abstract class AbstractContainerMenuItem extends AbstractMenuItem
-
-
Constructor Summary
Constructors Constructor Description AbstractContainerMenuItem(String p_strId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IMenuItem[]
children()
Get the children of this menu item.int
getChildrenCount()
Get the number of children of this node.IMenuItem
getDescendantOrSelf(String p_strId)
Get the menu item with the specified unique identifier from this subtree.boolean
hasChildren()
Check if this menu item has children.boolean
hasContainerChildren()
-
Methods inherited from class de.uplanet.lucy.server.menu.rt.AbstractMenuItem
clone, getGuid, getLevel, getLevelRelative, getName, getNames, getNextSibling, getParent, getPreviousSibling, getProperties, getProperty, hasName, hasParent, hasProperty, isApplicationMenuItem, isCmsMenuItem, isContainerMenuItem, isFirstChild, isLastChild, isLinkMenuItem, isRootMenuItem, isSeparatorMenuItem, isTopLevelGroupMenuItem
-
-
-
-
Constructor Detail
-
AbstractContainerMenuItem
public AbstractContainerMenuItem(String p_strId)
-
-
Method Detail
-
hasChildren
public boolean hasChildren()
Description copied from interface:IMenuItem
Check if this menu item has children.- Returns:
true
if this menu item has children, orfalse
otherwise.
-
hasContainerChildren
public boolean hasContainerChildren()
-
getChildrenCount
public int getChildrenCount()
Description copied from interface:IMenuItem
Get the number of children of this node.- Returns:
- The number of children.
-
children
public IMenuItem[] children()
Description copied from interface:IMenuItem
Get the children of this menu item. If the menu item has no children, an empty array is returned.- Returns:
- The children of this menu item (never
null
).
-
getDescendantOrSelf
public IMenuItem getDescendantOrSelf(String p_strId)
Description copied from interface:IMenuItem
Get the menu item with the specified unique identifier from this subtree.- Parameters:
p_strId
- The menu item's unique identifier.- Returns:
- The menu item with the given unique identifier, or
null
if the menu item does not exist in this subtree.
-
-