public class CmsSitemapToolbarHandler extends A_CmsToolbarHandler
| 构造器和说明 |
|---|
CmsSitemapToolbarHandler(java.util.List<CmsContextMenuEntryBean> menuBeans)
Constructor.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
activateSelection()
Activates the selection button.
|
void |
deactivateCurrentButton()
De-activates the current button.
|
boolean |
ensureLockOnResource(CmsUUID structureId)
Tries to lock the given resource and returns
true on success. |
I_CmsToolbarButton |
getActiveButton()
Returns the currently active button (may be null).
|
java.util.Map<java.lang.String,I_CmsContextMenuCommand> |
getContextMenuCommands()
Returns the available context menu commands as a map by class name.
|
void |
leavePage(java.lang.String targetUri)
Leaves the current page calling the target URI.
|
void |
loadContextMenu(CmsUUID structureId,
CmsCoreData.AdeContext context)
Loads the context menu.
|
void |
refreshResource(CmsUUID structureId)
Reloads the resource edited.
|
void |
setActiveButton(I_CmsToolbarButton button)
Sets the currently active tool-bar button.
|
java.util.List<I_CmsContextMenuEntry> |
transformEntries(java.util.List<CmsContextMenuEntryBean> menuBeans,
CmsUUID structureId)
Transforms a list of context menu entry beans to a list of context menu entries.
|
void |
unlockResource(CmsUUID structureId)
Unlocks the resource if appropriate.
|
transformSingleEntrypublic CmsSitemapToolbarHandler(java.util.List<CmsContextMenuEntryBean> menuBeans)
menuBeans - the context menu entry beanspublic void activateSelection()
I_CmsToolbarHandlerpublic void deactivateCurrentButton()
I_CmsToolbarHandlerpublic boolean ensureLockOnResource(CmsUUID structureId)
I_CmsContextMenuHandlertrue on success.
If not successful a warning should be displayed.structureId - the structure id of the resource to locktrue if successfulI_CmsContextMenuHandler.ensureLockOnResource(org.opencms.util.CmsUUID)public I_CmsToolbarButton getActiveButton()
I_CmsToolbarHandlerI_CmsToolbarHandler.getActiveButton()public java.util.Map<java.lang.String,I_CmsContextMenuCommand> getContextMenuCommands()
I_CmsContextMenuHandlerI_CmsContextMenuHandler.getContextMenuCommands()public void leavePage(java.lang.String targetUri)
I_CmsContextMenuHandlertargetUri - the target URII_CmsContextMenuHandler.leavePage(java.lang.String)public void loadContextMenu(CmsUUID structureId, CmsCoreData.AdeContext context)
I_CmsToolbarHandlerstructureId - the structure id of the resource for which to load the context menucontext - the context menu item visibility contextI_CmsToolbarHandler.loadContextMenu(org.opencms.util.CmsUUID, org.opencms.gwt.shared.CmsCoreData.AdeContext)public void refreshResource(CmsUUID structureId)
I_CmsContextMenuHandlerstructureId - the structure id of the resource to lockI_CmsContextMenuHandler.refreshResource(org.opencms.util.CmsUUID)public void setActiveButton(I_CmsToolbarButton button)
button - the buttonpublic java.util.List<I_CmsContextMenuEntry> transformEntries(java.util.List<CmsContextMenuEntryBean> menuBeans, CmsUUID structureId)
A_CmsToolbarHandlertransformEntries 在类中 A_CmsToolbarHandlermenuBeans - the list of context menu entry beansstructureId - the id of the resource for which to transform the context menu entriesA_CmsToolbarHandler.transformEntries(java.util.List, org.opencms.util.CmsUUID)public void unlockResource(CmsUUID structureId)
I_CmsContextMenuHandlerstructureId - the structure id of the resource to lockI_CmsContextMenuHandler.unlockResource(org.opencms.util.CmsUUID)