public class CmsContextMenuEntryBean extends java.lang.Object implements com.google.gwt.user.client.rpc.IsSerializable
Constructor and 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.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getIconClass()
Gets the CSS class used to display an item.
|
java.lang.String |
getJspPath()
Returns the jsp path of the menu entry.
|
java.lang.String |
getLabel()
Returns the label of the menu entry.
|
java.lang.String |
getName()
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.String |
getReason()
Returns the reason for de-activation of the menu entry.
|
java.util.List<CmsContextMenuEntryBean> |
getSubMenu()
Returns the sub menu entries.
|
boolean |
hasSubMenu()
Returns
true if this menu entry has a sub menu false otherwise. |
boolean |
isActive()
Returns
true if this menu entry is active, false otherwise. |
boolean |
isSeparator()
Returns
true if this menu entry is a separator, false otherwise. |
boolean |
isVisible()
Returns
true if this menu entry is visible, false otherwise. |
void |
setActive(boolean active)
Sets the active.
|
void |
setIconClass(java.lang.String iconClass)
Sets CSS class to display an icon.
|
void |
setJspPath(java.lang.String jspPath)
Sets the jspPath.
|
void |
setLabel(java.lang.String label)
Sets the label.
|
void |
setName(java.lang.String name)
Sets the name of the entry.
|
void |
setParams(java.util.Map<java.lang.String,java.lang.String> params)
Sets the parameters for the context menu command.
|
void |
setReason(java.lang.String reason)
Sets the reason.
|
void |
setSeparator(boolean separator)
Sets the separator.
|
void |
setSubMenu(java.util.List<CmsContextMenuEntryBean> subMenu)
Sets the subMenu.
|
void |
setVisible(boolean visible)
Sets the visible flag.
|
public 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)
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 entrypublic java.lang.String getIconClass()
public java.lang.String getJspPath()
public java.lang.String getLabel()
public java.lang.String getName()
public java.util.Map<java.lang.String,java.lang.String> getParams()
public java.lang.String getReason()
public java.util.List<CmsContextMenuEntryBean> getSubMenu()
public boolean hasSubMenu()
true
if this menu entry has a sub menu false
otherwise.true
if this menu entry has a sub menu false
otherwisepublic boolean isActive()
true
if this menu entry is active, false
otherwise.true
if this menu entry is active, false
otherwisepublic boolean isSeparator()
true
if this menu entry is a separator, false
otherwise.true
if this menu entry is a separator, false
otherwisepublic boolean isVisible()
true
if this menu entry is visible, false
otherwise.true
if this menu entry is visible, false
otherwisepublic void setActive(boolean active)
active
- the active to setpublic void setIconClass(java.lang.String iconClass)
iconClass
- the CSS class for the iconpublic void setJspPath(java.lang.String jspPath)
jspPath
- the jspPath to setpublic void setLabel(java.lang.String label)
label
- the label to setpublic void setName(java.lang.String name)
name
- the name to setpublic void setParams(java.util.Map<java.lang.String,java.lang.String> params)
params
- the parameters for the context menu commandpublic void setReason(java.lang.String reason)
reason
- the reason to setpublic void setSeparator(boolean separator)
separator
- the separator to setpublic void setSubMenu(java.util.List<CmsContextMenuEntryBean> subMenu)
subMenu
- the subMenu to setpublic void setVisible(boolean visible)
visible
- the enabled to set