public abstract class A_CmsSitemapMenuEntry extends java.lang.Object implements I_CmsContextMenuEntry, I_CmsHoverbarShowHandler
| 构造器和说明 |
|---|
A_CmsSitemapMenuEntry(CmsSitemapHoverbar hoverbar)
Constructor.
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
deattachHoverbar()
De-attaches the hoverbar.
|
A_CmsContextMenuItem |
generateMenuItem()
Generates the context menu item.
|
protected CmsSitemapHoverbar |
getHoverbar()
Returns the hoverbar.
|
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. |
abstract void |
onShow(CmsHoverbarShowEvent event)
Executed when the context-menu parent hoverbar is attached.
|
void |
setActive(boolean active)
Sets if this menu entry is active.
|
void |
setDisabledReason(java.lang.String reason)
Sets the reason if the entry is de-activated.
|
void |
setLabel(java.lang.String label)
Sets the label (text) for the menu entry.
|
void |
setVisible(boolean visible)
Sets if the menu entry is visible.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecutepublic A_CmsSitemapMenuEntry(CmsSitemapHoverbar hoverbar)
hoverbar - the hoverbarpublic A_CmsContextMenuItem generateMenuItem()
I_CmsContextMenuEntrygenerateMenuItem 在接口中 I_CmsContextMenuEntryI_CmsContextMenuEntry.generateMenuItem()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 abstract void onShow(CmsHoverbarShowEvent event)
onShow 在接口中 I_CmsHoverbarShowHandlerevent - the eventI_CmsHoverbarShowHandler.onShow(org.opencms.ade.sitemap.client.hoverbar.CmsHoverbarShowEvent)public void setActive(boolean active)
active - true to set this menu entry activepublic void setDisabledReason(java.lang.String reason)
reason - the reason if the entry is de-activatedpublic void setLabel(java.lang.String label)
label - the label (text) for the menu entrypublic void setVisible(boolean visible)
visible - true to set the entry visibleprotected void deattachHoverbar()
protected CmsSitemapHoverbar getHoverbar()