Package org.opencms.ui.shared
Class CmsContextMenuState.ContextMenuItemState
java.lang.Object
org.opencms.ui.shared.CmsContextMenuState.ContextMenuItemState
- All Implemented Interfaces:
Serializable
- Enclosing class:
CmsContextMenuState
The menu item state.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdds a child item.booleanReturns the caption.Returns the child items.Returns the description.getId()Returns the id.Returns the styles.inthashCode()booleanReturns whether the item is enabled.booleanReturns whether a separator should be displayed.voidRemoves the given child.voidsetCaption(String caption) Sets the caption.voidSets the child items.voidsetDescription(String description) Sets the description.voidsetEnabled(boolean enabled) Sets the item enabled.voidSets the id.voidsetSeparator(boolean separator) Sets whether a separator should be displayed.voidSets the styles.
-
Constructor Details
-
ContextMenuItemState
public ContextMenuItemState()Constructor.
-
-
Method Details
-
addChild
Adds a child item.- Parameters:
caption- the captionid- the id- Returns:
- the child item state
-
equals
-
getCaption
Returns the caption.- Returns:
- the caption
-
getChildren
Returns the child items.- Returns:
- the child items
-
getDescription
Returns the description.- Returns:
- the description
-
getId
Returns the id.- Returns:
- the id
-
getStyles
Returns the styles.- Returns:
- the styles
-
hashCode
-
isSeparator
Returns whether a separator should be displayed.- Returns:
trueif a separator should be displayed
-
isEnabled
Returns whether the item is enabled.- Returns:
trueif the item is enabled
-
setCaption
Sets the caption.- Parameters:
caption- the caption
-
setChildren
Sets the child items.- Parameters:
children- the children
-
setDescription
Sets the description.- Parameters:
description- the description to set
-
setEnabled
Sets the item enabled.- Parameters:
enabled-trueto enable the item
-
setId
Sets the id.- Parameters:
id- the id to set
-
setSeparator
Sets whether a separator should be displayed.- Parameters:
separator-trueif a separator should be displayed
-
setStyles
Sets the styles.- Parameters:
styleNames- the styles
-