Package org.opencms.gwt.shared
Class CmsContextMenuEntryBean
java.lang.Object
org.opencms.gwt.shared.CmsContextMenuEntryBean
- All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable
public class CmsContextMenuEntryBean
extends Object
implements com.google.gwt.user.client.rpc.IsSerializable
A context menu entry bean.
-
Constructor Summary
ConstructorDescriptionDefault Constructor.CmsContextMenuEntryBean
(boolean active, boolean visible, String jspPath, String label, String name, String reason, boolean separator, List<CmsContextMenuEntryBean> subMenu) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionGets the CSS class used to display an item.Returns the jsp path of the menu entry.getLabel()
Returns the label of the menu entry.getName()
Returns the name of the entry.Gets the parameters for the context menu command.Returns the reason for de-activation of the menu entry.Returns the sub menu entries.boolean
Returnstrue
if this menu entry has a sub menufalse
otherwise.boolean
isActive()
Returnstrue
if this menu entry is active,false
otherwise.boolean
Returnstrue
if this menu entry is a separator,false
otherwise.boolean
Returnstrue
if this menu entry is visible,false
otherwise.void
setActive
(boolean active) Sets the active.void
setIconClass
(String iconClass) Sets CSS class to display an icon.void
setJspPath
(String jspPath) Sets the jspPath.void
Sets the label.void
Sets the name of the entry.void
Sets the parameters for the context menu command.void
Sets the reason.void
setSeparator
(boolean separator) Sets the separator.void
setSubMenu
(List<CmsContextMenuEntryBean> subMenu) Sets the subMenu.void
setVisible
(boolean visible) Sets the visible flag.
-
Constructor Details
-
CmsContextMenuEntryBean
public CmsContextMenuEntryBean()Default Constructor. -
CmsContextMenuEntryBean
public CmsContextMenuEntryBean(boolean active, boolean visible, String jspPath, String label, String name, String reason, boolean separator, List<CmsContextMenuEntryBean> subMenu) Constructor.- Parameters:
active
- signals if this menu entry is activevisible
- signals if this menu entry is visiblejspPath
- the JSP path for the commandlabel
- the label for the menu entryname
- the name for the menu entryreason
- the reason why this item is deactivatedseparator
- signals if this entry is a separatorsubMenu
- contains the sub menu of the entry
-
-
Method Details
-
getIconClass
Gets the CSS class used to display an item.- Returns:
- the CSS class for the icon
-
getJspPath
Returns the jsp path of the menu entry.- Returns:
- the jsp path
-
getLabel
Returns the label of the menu entry.- Returns:
- the label
-
getName
Returns the name of the entry.- Returns:
- the name of the entry
-
getParams
Gets the parameters for the context menu command.- Returns:
- the parameters
-
getReason
Returns the reason for de-activation of the menu entry.- Returns:
- the reason
-
getSubMenu
Returns the sub menu entries.- Returns:
- the entries of the sub menu
-
hasSubMenu
Returnstrue
if this menu entry has a sub menufalse
otherwise.- Returns:
true
if this menu entry has a sub menufalse
otherwise
-
isActive
Returnstrue
if this menu entry is active,false
otherwise.- Returns:
true
if this menu entry is active,false
otherwise
-
isSeparator
Returnstrue
if this menu entry is a separator,false
otherwise.- Returns:
true
if this menu entry is a separator,false
otherwise
-
isVisible
Returnstrue
if this menu entry is visible,false
otherwise.- Returns:
true
if this menu entry is visible,false
otherwise
-
setActive
Sets the active.- Parameters:
active
- the active to set
-
setIconClass
Sets CSS class to display an icon.- Parameters:
iconClass
- the CSS class for the icon
-
setJspPath
Sets the jspPath.- Parameters:
jspPath
- the jspPath to set
-
setLabel
Sets the label.- Parameters:
label
- the label to set
-
setName
Sets the name of the entry.- Parameters:
name
- the name to set
-
setParams
Sets the parameters for the context menu command.- Parameters:
params
- the parameters for the context menu command
-
setReason
Sets the reason.- Parameters:
reason
- the reason to set
-
setSeparator
Sets the separator.- Parameters:
separator
- the separator to set
-
setSubMenu
Sets the subMenu.- Parameters:
subMenu
- the subMenu to set
-
setVisible
Sets the visible flag.- Parameters:
visible
- the enabled to set
-