Package de.uplanet.lucy.server.menu.rt
Class AbstractMenuItem
java.lang.Object
de.uplanet.lucy.server.menu.rt.AbstractMenuItem
- Direct Known Subclasses:
- AbstractContainerMenuItem,- ApplicationMenuItem,- LinkMenuItem,- SeparatorMenuItem
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionabstract AbstractMenuItemclone()getGuid()Get the menu item's unique identifier.intgetLevel()Get the level of this menu item.intgetLevelRelative(IMenuItem p_menuItem) Get the level of this menu item relative to the given menu item.Get the name of this menu item in the specified language.getNames()Get the menu item's language dependent names.Get the next sibling of this menu item.Get the parent of this menu item.Get the previous sibling of this menu item.Get the menu item's properties.getProperty(String p_strName) Get the value of the given propertybooleanTest if this menu item has a name in the specified language.booleanIndicates if this menu item has a parent.booleanhasProperty(String p_strLang) Test if this menu item has the given property.booleanIndicates if this menu item is an application menu item.booleanIndicates if this menu item is a CMS menu item.booleanIndicates if this menu item is a container.booleanCheck if this menu item is the first child of it's parent.booleanCheck if this menu item is the last child of it's parent.booleanIndicates if this menu item is a link menu item.booleanIndicates if this is the root menu item.booleanIndicates if this menu item is a separator.booleanIndicates if this menu item is a top-level group.Methods inherited from class java.lang.Objectequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.uplanet.lucy.server.menu.rt.IMenuItemchildren, getChildrenCount, getDescendantOrSelf, hasChildren
- 
Constructor Details- 
AbstractMenuItem
 
- 
- 
Method Details- 
clone
- 
getGuidDescription copied from interface:IMenuItemGet the menu item's unique identifier.
- 
isRootMenuItempublic boolean isRootMenuItem()Description copied from interface:IMenuItemIndicates if this is the root menu item.- Specified by:
- isRootMenuItemin interface- IMenuItem
- Returns:
- Always false.
 
- 
isApplicationMenuItempublic boolean isApplicationMenuItem()Description copied from interface:IMenuItemIndicates if this menu item is an application menu item.- Specified by:
- isApplicationMenuItemin interface- IMenuItem
- Returns:
- Always false.
 
- 
isLinkMenuItempublic boolean isLinkMenuItem()Description copied from interface:IMenuItemIndicates if this menu item is a link menu item.- Specified by:
- isLinkMenuItemin interface- IMenuItem
- Returns:
- Always false.
 
- 
isCmsMenuItempublic boolean isCmsMenuItem()Description copied from interface:IMenuItemIndicates if this menu item is a CMS menu item.- Specified by:
- isCmsMenuItemin interface- IMenuItem
- Returns:
- Always false.
 
- 
isSeparatorMenuItempublic boolean isSeparatorMenuItem()Description copied from interface:IMenuItemIndicates if this menu item is a separator.- Specified by:
- isSeparatorMenuItemin interface- IMenuItem
- Returns:
- Always false.
 
- 
isContainerMenuItempublic boolean isContainerMenuItem()Description copied from interface:IMenuItemIndicates if this menu item is a container.- Specified by:
- isContainerMenuItemin interface- IMenuItem
- Returns:
- Always false.
 
- 
isTopLevelGroupMenuItempublic boolean isTopLevelGroupMenuItem()Description copied from interface:IMenuItemIndicates if this menu item is a top-level group.- Specified by:
- isTopLevelGroupMenuItemin interface- IMenuItem
- Returns:
- Always false.
 
- 
getLevelpublic int getLevel()Description copied from interface:IMenuItemGet the level of this menu item.0for menu items that do not have a parent.
- 
hasParentpublic boolean hasParent()Description copied from interface:IMenuItemIndicates if this menu item has a parent.
- 
getParentDescription copied from interface:IMenuItemGet the parent of this menu item.
- 
isFirstChildpublic boolean isFirstChild()Description copied from interface:IMenuItemCheck if this menu item is the first child of it's parent.- Specified by:
- isFirstChildin interface- IMenuItem
- Returns:
- trueif this menu item has a parent and is the first child of this parent, or- falseotherwise.
 
- 
isLastChildpublic boolean isLastChild()Description copied from interface:IMenuItemCheck if this menu item is the last child of it's parent.- Specified by:
- isLastChildin interface- IMenuItem
- Returns:
- trueif this menu item has a parent and is the last child of this parent, or- falseotherwise.
 
- 
getPreviousSiblingDescription copied from interface:IMenuItemGet the previous sibling of this menu item.- Specified by:
- getPreviousSiblingin interface- IMenuItem
- Returns:
- If this menu item has a parent and this menu item is not the
    first child of this parent, the previous sibling of this menu item
    is returned. In all other cases the return value is null.
 
- 
getNextSiblingDescription copied from interface:IMenuItemGet the next sibling of this menu item.- Specified by:
- getNextSiblingin interface- IMenuItem
- Returns:
- If this menu item has a parent and this menu item is not the
    last child of this parent, the next sibling of this menu item
    is returned. In all other cases the return value is null.
 
- 
hasPropertyDescription copied from interface:IMenuItemTest if this menu item has the given property.- Specified by:
- hasPropertyin interface- IMenuItem
- Parameters:
- p_strLang- The property name.
- Returns:
- trueif this menu item has the property, or- falseotherwise.
 
- 
getPropertyDescription copied from interface:IMenuItemGet the value of the given property- Specified by:
- getPropertyin interface- IMenuItem
- Parameters:
- p_strName- The property name.
- Returns:
- The value of the property.
 
- 
getPropertiesDescription copied from interface:IMenuItemGet the menu item's properties.- Specified by:
- getPropertiesin interface- IMenuItem
- Returns:
- An immutable map of the menu item's properties,
    never null.
 
- 
hasNameDescription copied from interface:IMenuItemTest if this menu item has a name in the specified language.
- 
getNameDescription copied from interface:IMenuItemGet the name of this menu item in the specified language.
- 
getNamesDescription copied from interface:IMenuItemGet the menu item's language dependent names.
 
-