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
-
Method Summary
Modifier and TypeMethodDescriptionAdds a child item.boolean
Returns the caption.Returns the child items.Returns the description.getId()
Returns the id.Returns the styles.int
hashCode()
boolean
Returns whether the item is enabled.boolean
Returns whether a separator should be displayed.void
Removes the given child.void
setCaption
(String caption) Sets the caption.void
Sets the child items.void
setDescription
(String description) Sets the description.void
setEnabled
(boolean enabled) Sets the item enabled.void
Sets the id.void
setSeparator
(boolean separator) Sets whether a separator should be displayed.void
Sets 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:
true
if a separator should be displayed
-
isEnabled
Returns whether the item is enabled.- Returns:
true
if 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
-true
to enable the item
-
setId
Sets the id.- Parameters:
id
- the id to set
-
setSeparator
Sets whether a separator should be displayed.- Parameters:
separator
-true
if a separator should be displayed
-
setStyles
Sets the styles.- Parameters:
styleNames
- the styles
-