Package de.uplanet.lucy.server.menu.rt
Class SeparatorMenuItem
- java.lang.Object
-
- de.uplanet.lucy.server.menu.rt.AbstractMenuItem
-
- de.uplanet.lucy.server.menu.rt.SeparatorMenuItem
-
public final class SeparatorMenuItem extends AbstractMenuItem
-
-
Constructor Summary
Constructors Constructor Description SeparatorMenuItem(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.SeparatorMenuItem
clone()
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.int
getImageHeight()
String
getImagePath()
int
getImageWidth()
boolean
hasChildren()
Check if this menu item has children.boolean
isSeparatorMenuItem()
Indicates if this menu item is a separator.boolean
isUseImage()
void
setImageHeight(int p_iImageHeight)
void
setImagePath(String p_strImagePath)
void
setImageWidth(int p_iImageWidth)
void
setUseImage(boolean p_bUseImage)
-
Methods inherited from class de.uplanet.lucy.server.menu.rt.AbstractMenuItem
getGuid, getLevel, getLevelRelative, getName, getNames, getNextSibling, getParent, getPreviousSibling, getProperties, getProperty, hasName, hasParent, hasProperty, isApplicationMenuItem, isCmsMenuItem, isContainerMenuItem, isFirstChild, isLastChild, isLinkMenuItem, isRootMenuItem, isTopLevelGroupMenuItem
-
-
-
-
Constructor Detail
-
SeparatorMenuItem
public SeparatorMenuItem(String p_strId)
-
-
Method Detail
-
isUseImage
public boolean isUseImage()
-
setUseImage
public void setUseImage(boolean p_bUseImage)
-
getImagePath
public String getImagePath()
-
setImagePath
public void setImagePath(String p_strImagePath)
-
getImageWidth
public int getImageWidth()
-
setImageWidth
public void setImageWidth(int p_iImageWidth)
-
getImageHeight
public int getImageHeight()
-
setImageHeight
public void setImageHeight(int p_iImageHeight)
-
clone
public SeparatorMenuItem clone()
- Specified by:
clone
in classAbstractMenuItem
-
isSeparatorMenuItem
public boolean isSeparatorMenuItem()
Description copied from interface:IMenuItem
Indicates if this menu item is a separator.- Specified by:
isSeparatorMenuItem
in interfaceIMenuItem
- Overrides:
isSeparatorMenuItem
in classAbstractMenuItem
- Returns:
- Always
true
.
-
hasChildren
public boolean hasChildren()
Description copied from interface:IMenuItem
Check if this menu item has children.- Returns:
- Always
false
.
-
getChildrenCount
public int getChildrenCount()
Description copied from interface:IMenuItem
Get the number of children of this node.- Returns:
- Always
0
.
-
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:
- Always an empty array.
-
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.
-
-