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 Summary
Constructors - 
Method Summary
Modifier 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.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.uplanet.lucy.server.menu.rt.IMenuItem
children, getChildrenCount, getDescendantOrSelf, hasChildren 
- 
Constructor Details
- 
AbstractMenuItem
 
 - 
 - 
Method Details
- 
clone
 - 
getGuid
Description copied from interface:IMenuItemGet the menu item's unique identifier. - 
isRootMenuItem
public boolean isRootMenuItem()Description copied from interface:IMenuItemIndicates if this is the root menu item.- Specified by:
 isRootMenuItemin interfaceIMenuItem- Returns:
 - Always 
false. 
 - 
isApplicationMenuItem
public boolean isApplicationMenuItem()Description copied from interface:IMenuItemIndicates if this menu item is an application menu item.- Specified by:
 isApplicationMenuItemin interfaceIMenuItem- Returns:
 - Always 
false. 
 - 
isLinkMenuItem
public boolean isLinkMenuItem()Description copied from interface:IMenuItemIndicates if this menu item is a link menu item.- Specified by:
 isLinkMenuItemin interfaceIMenuItem- Returns:
 - Always 
false. 
 - 
isCmsMenuItem
public boolean isCmsMenuItem()Description copied from interface:IMenuItemIndicates if this menu item is a CMS menu item.- Specified by:
 isCmsMenuItemin interfaceIMenuItem- Returns:
 - Always 
false. 
 - 
isSeparatorMenuItem
public boolean isSeparatorMenuItem()Description copied from interface:IMenuItemIndicates if this menu item is a separator.- Specified by:
 isSeparatorMenuItemin interfaceIMenuItem- Returns:
 - Always 
false. 
 - 
isContainerMenuItem
public boolean isContainerMenuItem()Description copied from interface:IMenuItemIndicates if this menu item is a container.- Specified by:
 isContainerMenuItemin interfaceIMenuItem- Returns:
 - Always 
false. 
 - 
isTopLevelGroupMenuItem
public boolean isTopLevelGroupMenuItem()Description copied from interface:IMenuItemIndicates if this menu item is a top-level group.- Specified by:
 isTopLevelGroupMenuItemin interfaceIMenuItem- Returns:
 - Always 
false. 
 - 
getLevel
public int getLevel()Description copied from interface:IMenuItemGet the level of this menu item.0for menu items that do not have a parent. - 
hasParent
public boolean hasParent()Description copied from interface:IMenuItemIndicates if this menu item has a parent. - 
getParent
Description copied from interface:IMenuItemGet the parent of this menu item. - 
isFirstChild
public boolean isFirstChild()Description copied from interface:IMenuItemCheck if this menu item is the first child of it's parent.- Specified by:
 isFirstChildin interfaceIMenuItem- Returns:
 trueif this menu item has a parent and is the first child of this parent, orfalseotherwise.
 - 
isLastChild
public boolean isLastChild()Description copied from interface:IMenuItemCheck if this menu item is the last child of it's parent.- Specified by:
 isLastChildin interfaceIMenuItem- Returns:
 trueif this menu item has a parent and is the last child of this parent, orfalseotherwise.
 - 
getPreviousSibling
Description copied from interface:IMenuItemGet the previous sibling of this menu item.- Specified by:
 getPreviousSiblingin interfaceIMenuItem- 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. 
 - 
getNextSibling
Description copied from interface:IMenuItemGet the next sibling of this menu item.- Specified by:
 getNextSiblingin interfaceIMenuItem- 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. 
 - 
hasProperty
Description copied from interface:IMenuItemTest if this menu item has the given property.- Specified by:
 hasPropertyin interfaceIMenuItem- Parameters:
 p_strLang- The property name.- Returns:
 trueif this menu item has the property, orfalseotherwise.
 - 
getProperty
Description copied from interface:IMenuItemGet the value of the given property- Specified by:
 getPropertyin interfaceIMenuItem- Parameters:
 p_strName- The property name.- Returns:
 - The value of the property.
 
 - 
getProperties
Description copied from interface:IMenuItemGet the menu item's properties.- Specified by:
 getPropertiesin interfaceIMenuItem- Returns:
 - An immutable map of the menu item's properties,
    never 
null. 
 - 
hasName
Description copied from interface:IMenuItemTest if this menu item has a name in the specified language. - 
getName
Description copied from interface:IMenuItemGet the name of this menu item in the specified language. - 
getNames
Description copied from interface:IMenuItemGet the menu item's language dependent names. 
 -