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_CmsContextMenuEntryexecute 在接口中 I_CmsContextMenuEntryI_CmsContextMenuEntry.execute()public A_CmsContextMenuItem generateMenuItem()
I_CmsContextMenuEntrygenerateMenuItem 在接口中 I_CmsContextMenuEntryI_CmsContextMenuEntry.generateMenuItem()public CmsContextMenuEntryBean getBean()
public java.lang.String getIconClass()
I_CmsContextMenuEntrygetIconClass 在接口中 I_CmsContextMenuEntryI_CmsContextMenuEntry.getIconClass()public java.lang.String getJspPath()
I_CmsContextMenuEntrygetJspPath 在接口中 I_CmsContextMenuEntryI_CmsContextMenuEntry.getJspPath()public java.lang.String getLabel()
I_CmsContextMenuEntrygetLabel 在接口中 I_CmsContextMenuEntryI_CmsContextMenuEntry.getLabel()public java.lang.String getName()
I_CmsContextMenuEntrygetName 在接口中 I_CmsContextMenuEntryI_CmsContextMenuEntry.getName()public java.lang.String getReason()
I_CmsContextMenuEntrygetReason 在接口中 I_CmsContextMenuEntryI_CmsContextMenuEntry.getReason()public java.util.List<I_CmsContextMenuEntry> getSubMenu()
I_CmsContextMenuEntryI_CmsContextMenuEntry objects.getSubMenu 在接口中 I_CmsContextMenuEntryI_CmsContextMenuEntry.getSubMenu()public boolean hasSubMenu()
I_CmsContextMenuEntrytrue if this menu entry has a sub menu false otherwise.hasSubMenu 在接口中 I_CmsContextMenuEntrytrue if this menu entry has a sub menu false otherwiseI_CmsContextMenuEntry.hasSubMenu()public boolean isActive()
I_CmsContextMenuEntrytrue if this menu entry is active false otherwise.isActive 在接口中 I_CmsContextMenuEntrytrue if this menu entry is active false otherwiseI_CmsContextMenuEntry.isActive()public boolean isSeparator()
I_CmsContextMenuEntrytrue if this menu entry is a separator false otherwise.isSeparator 在接口中 I_CmsContextMenuEntrytrue if this menu entry is a separator false otherwiseI_CmsContextMenuEntry.isSeparator()public boolean isVisible()
I_CmsContextMenuEntrytrue if this menu entry is visible false otherwise.isVisible 在接口中 I_CmsContextMenuEntrytrue 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