public static class CmsContextMenuState.ContextMenuItemState extends java.lang.Object implements java.io.Serializable
Constructor and Description |
---|
CmsContextMenuState.ContextMenuItemState()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
CmsContextMenuState.ContextMenuItemState |
addChild(java.lang.String caption,
java.lang.String id)
Adds a child item.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getCaption()
Returns the caption.
|
java.util.List<CmsContextMenuState.ContextMenuItemState> |
getChildren()
Returns the child items.
|
java.lang.String |
getDescription()
Returns the description.
|
java.lang.String |
getId()
Returns the id.
|
java.util.Set<java.lang.String> |
getStyles()
Returns the styles.
|
int |
hashCode() |
boolean |
isEnabled()
Returns whether the item is enabled.
|
boolean |
isSeparator()
Returns whether a separator should be displayed.
|
void |
removeChild(CmsContextMenuState.ContextMenuItemState child)
Removes the given child.
|
void |
setCaption(java.lang.String caption)
Sets the caption.
|
void |
setChildren(java.util.List<CmsContextMenuState.ContextMenuItemState> children)
Sets the child items.
|
void |
setDescription(java.lang.String description)
Sets the description.
|
void |
setEnabled(boolean enabled)
Sets the item enabled.
|
void |
setId(java.lang.String id)
Sets the id.
|
void |
setSeparator(boolean separator)
Sets whether a separator should be displayed.
|
void |
setStyles(java.util.Set<java.lang.String> styleNames)
Sets the styles.
|
public CmsContextMenuState.ContextMenuItemState()
public CmsContextMenuState.ContextMenuItemState addChild(java.lang.String caption, java.lang.String id)
caption
- the captionid
- the idpublic boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Object.equals(java.lang.Object)
public java.lang.String getCaption()
public java.util.List<CmsContextMenuState.ContextMenuItemState> getChildren()
public java.lang.String getDescription()
public java.lang.String getId()
public java.util.Set<java.lang.String> getStyles()
public int hashCode()
hashCode
in class java.lang.Object
Object.hashCode()
public boolean isSeparator()
true
if a separator should be displayedpublic boolean isEnabled()
true
if the item is enabledpublic void removeChild(CmsContextMenuState.ContextMenuItemState child)
child
- the child to removepublic void setCaption(java.lang.String caption)
caption
- the captionpublic void setChildren(java.util.List<CmsContextMenuState.ContextMenuItemState> children)
children
- the childrenpublic void setDescription(java.lang.String description)
description
- the description to setpublic void setEnabled(boolean enabled)
enabled
- true
to enable the itempublic void setId(java.lang.String id)
id
- the id to setpublic void setSeparator(boolean separator)
separator
- true
if a separator should be displayedpublic void setStyles(java.util.Set<java.lang.String> styleNames)
styleNames
- the styles