public class CmsContextMenuEntry extends java.lang.Object implements I_CmsContextMenuEntry
构造器和说明 |
---|
CmsContextMenuEntry(I_CmsContextMenuHandler handler,
CmsUUID structureId,
I_CmsContextMenuCommand menuCommand)
Constructor.
|
限定符和类型 | 方法和说明 |
---|---|
void |
execute()
Executes the context menu action.
|
A_CmsContextMenuItem |
generateMenuItem()
Generates the context menu item.
|
CmsContextMenuEntryBean |
getBean()
Returns the bean.
|
java.lang.String |
getIconClass()
Returns a CSS class which should be used to display an icon, or null if no icon is required.
|
java.lang.String |
getJspPath()
Returns the JSP path for the command generation.
|
java.lang.String |
getLabel()
Returns the label (text) for the menu entry.
|
java.lang.String |
getName()
Returns the name of the entry.
|
java.lang.String |
getReason()
Returns the reason if the entry is de-activated .
|
java.util.List<I_CmsContextMenuEntry> |
getSubMenu()
Returns a list of
I_CmsContextMenuEntry objects. |
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 |
setBean(CmsContextMenuEntryBean bean)
Sets the bean.
|
void |
setMenuCommand(I_CmsContextMenuCommand command)
Sets the command.
|
void |
setSubMenu(java.util.List<I_CmsContextMenuEntry> subMenu)
Sets the sub menu.
|
public CmsContextMenuEntry(I_CmsContextMenuHandler handler, CmsUUID structureId, I_CmsContextMenuCommand menuCommand)
handler
- the context menu handlerstructureId
- the structure idmenuCommand
- the menu commandpublic void execute()
I_CmsContextMenuEntry
execute
在接口中 I_CmsContextMenuEntry
I_CmsContextMenuEntry.execute()
public A_CmsContextMenuItem generateMenuItem()
I_CmsContextMenuEntry
generateMenuItem
在接口中 I_CmsContextMenuEntry
I_CmsContextMenuEntry.generateMenuItem()
public CmsContextMenuEntryBean getBean()
public java.lang.String getIconClass()
I_CmsContextMenuEntry
getIconClass
在接口中 I_CmsContextMenuEntry
I_CmsContextMenuEntry.getIconClass()
public java.lang.String getJspPath()
I_CmsContextMenuEntry
getJspPath
在接口中 I_CmsContextMenuEntry
I_CmsContextMenuEntry.getJspPath()
public java.lang.String getLabel()
I_CmsContextMenuEntry
getLabel
在接口中 I_CmsContextMenuEntry
I_CmsContextMenuEntry.getLabel()
public java.lang.String getName()
I_CmsContextMenuEntry
getName
在接口中 I_CmsContextMenuEntry
I_CmsContextMenuEntry.getName()
public java.lang.String getReason()
I_CmsContextMenuEntry
getReason
在接口中 I_CmsContextMenuEntry
I_CmsContextMenuEntry.getReason()
public java.util.List<I_CmsContextMenuEntry> getSubMenu()
I_CmsContextMenuEntry
I_CmsContextMenuEntry
objects.getSubMenu
在接口中 I_CmsContextMenuEntry
I_CmsContextMenuEntry.getSubMenu()
public boolean hasSubMenu()
I_CmsContextMenuEntry
true
if this menu entry has a sub menu false
otherwise.hasSubMenu
在接口中 I_CmsContextMenuEntry
true
if this menu entry has a sub menu false
otherwiseI_CmsContextMenuEntry.hasSubMenu()
public boolean isActive()
I_CmsContextMenuEntry
true
if this menu entry is active false
otherwise.isActive
在接口中 I_CmsContextMenuEntry
true
if this menu entry is active false
otherwiseI_CmsContextMenuEntry.isActive()
public boolean isSeparator()
I_CmsContextMenuEntry
true
if this menu entry is a separator false
otherwise.isSeparator
在接口中 I_CmsContextMenuEntry
true
if this menu entry is a separator false
otherwiseI_CmsContextMenuEntry.isSeparator()
public boolean isVisible()
I_CmsContextMenuEntry
true
if this menu entry is visible false
otherwise.isVisible
在接口中 I_CmsContextMenuEntry
true
if this menu entry is visible false
otherwiseI_CmsContextMenuEntry.isVisible()
public void setBean(CmsContextMenuEntryBean bean)
bean
- the bean to setpublic void setMenuCommand(I_CmsContextMenuCommand command)
command
- the command to setpublic void setSubMenu(java.util.List<I_CmsContextMenuEntry> subMenu)
subMenu
- the sub menu to set