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 java.lang.Object implements com.google.gwt.user.client.rpc.IsSerializable
A context menu entry bean.
-
-
Constructor Summary
Constructors Constructor Description CmsContextMenuEntryBean()Default Constructor.CmsContextMenuEntryBean(boolean active, boolean visible, java.lang.String jspPath, java.lang.String label, java.lang.String name, java.lang.String reason, boolean separator, java.util.List<CmsContextMenuEntryBean> subMenu)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetIconClass()Gets the CSS class used to display an item.java.lang.StringgetJspPath()Returns the jsp path of the menu entry.java.lang.StringgetLabel()Returns the label of the menu entry.java.lang.StringgetName()Returns the name of the entry.java.util.Map<java.lang.String,java.lang.String>getParams()Gets the parameters for the context menu command.java.lang.StringgetReason()Returns the reason for de-activation of the menu entry.java.util.List<CmsContextMenuEntryBean>getSubMenu()Returns the sub menu entries.booleanhasSubMenu()Returnstrueif this menu entry has a sub menufalseotherwise.booleanisActive()Returnstrueif this menu entry is active,falseotherwise.booleanisSeparator()Returnstrueif this menu entry is a separator,falseotherwise.booleanisVisible()Returnstrueif this menu entry is visible,falseotherwise.voidsetActive(boolean active)Sets the active.voidsetIconClass(java.lang.String iconClass)Sets CSS class to display an icon.voidsetJspPath(java.lang.String jspPath)Sets the jspPath.voidsetLabel(java.lang.String label)Sets the label.voidsetName(java.lang.String name)Sets the name of the entry.voidsetParams(java.util.Map<java.lang.String,java.lang.String> params)Sets the parameters for the context menu command.voidsetReason(java.lang.String reason)Sets the reason.voidsetSeparator(boolean separator)Sets the separator.voidsetSubMenu(java.util.List<CmsContextMenuEntryBean> subMenu)Sets the subMenu.voidsetVisible(boolean visible)Sets the visible flag.
-
-
-
Constructor Detail
-
CmsContextMenuEntryBean
public CmsContextMenuEntryBean()
Default Constructor.
-
CmsContextMenuEntryBean
public CmsContextMenuEntryBean(boolean active, boolean visible, java.lang.String jspPath, java.lang.String label, java.lang.String name, java.lang.String reason, boolean separator, java.util.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 Detail
-
getIconClass
public java.lang.String getIconClass()
Gets the CSS class used to display an item.- Returns:
- the CSS class for the icon
-
getJspPath
public java.lang.String getJspPath()
Returns the jsp path of the menu entry.- Returns:
- the jsp path
-
getLabel
public java.lang.String getLabel()
Returns the label of the menu entry.- Returns:
- the label
-
getName
public java.lang.String getName()
Returns the name of the entry.- Returns:
- the name of the entry
-
getParams
public java.util.Map<java.lang.String,java.lang.String> getParams()
Gets the parameters for the context menu command.- Returns:
- the parameters
-
getReason
public java.lang.String getReason()
Returns the reason for de-activation of the menu entry.- Returns:
- the reason
-
getSubMenu
public java.util.List<CmsContextMenuEntryBean> getSubMenu()
Returns the sub menu entries.- Returns:
- the entries of the sub menu
-
hasSubMenu
public boolean hasSubMenu()
Returnstrueif this menu entry has a sub menufalseotherwise.- Returns:
trueif this menu entry has a sub menufalseotherwise
-
isActive
public boolean isActive()
Returnstrueif this menu entry is active,falseotherwise.- Returns:
trueif this menu entry is active,falseotherwise
-
isSeparator
public boolean isSeparator()
Returnstrueif this menu entry is a separator,falseotherwise.- Returns:
trueif this menu entry is a separator,falseotherwise
-
isVisible
public boolean isVisible()
Returnstrueif this menu entry is visible,falseotherwise.- Returns:
trueif this menu entry is visible,falseotherwise
-
setActive
public void setActive(boolean active)
Sets the active.- Parameters:
active- the active to set
-
setIconClass
public void setIconClass(java.lang.String iconClass)
Sets CSS class to display an icon.- Parameters:
iconClass- the CSS class for the icon
-
setJspPath
public void setJspPath(java.lang.String jspPath)
Sets the jspPath.- Parameters:
jspPath- the jspPath to set
-
setLabel
public void setLabel(java.lang.String label)
Sets the label.- Parameters:
label- the label to set
-
setName
public void setName(java.lang.String name)
Sets the name of the entry.- Parameters:
name- the name to set
-
setParams
public void setParams(java.util.Map<java.lang.String,java.lang.String> params)
Sets the parameters for the context menu command.- Parameters:
params- the parameters for the context menu command
-
setReason
public void setReason(java.lang.String reason)
Sets the reason.- Parameters:
reason- the reason to set
-
setSeparator
public void setSeparator(boolean separator)
Sets the separator.- Parameters:
separator- the separator to set
-
setSubMenu
public void setSubMenu(java.util.List<CmsContextMenuEntryBean> subMenu)
Sets the subMenu.- Parameters:
subMenu- the subMenu to set
-
setVisible
public void setVisible(boolean visible)
Sets the visible flag.- Parameters:
visible- the enabled to set
-
-