public class CmsDirectEditToolbarHandler extends A_CmsToolbarHandler
构造器和说明 |
---|
CmsDirectEditToolbarHandler() |
限定符和类型 | 方法和说明 |
---|---|
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 |
insertContextMenu(java.util.List<CmsContextMenuEntryBean> menuBeans,
CmsUUID structureId)
Inserts the context menu.
|
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.
|
void |
setContextMenuButton(CmsToolbarContextButton button)
Sets the context menu button.
|
void |
showPublishDialog()
Opens the publish dialog.
|
void |
unlockResource(CmsUUID structureId)
Unlocks the resource if appropriate.
|
transformEntries, transformSingleEntry
public void activateSelection()
I_CmsToolbarHandler
public void deactivateCurrentButton()
public boolean ensureLockOnResource(CmsUUID structureId)
I_CmsContextMenuHandler
true
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_CmsToolbarHandler
I_CmsToolbarHandler.getActiveButton()
public java.util.Map<java.lang.String,I_CmsContextMenuCommand> getContextMenuCommands()
I_CmsContextMenuHandler
I_CmsContextMenuHandler.getContextMenuCommands()
public void insertContextMenu(java.util.List<CmsContextMenuEntryBean> menuBeans, CmsUUID structureId)
menuBeans
- the menu beans from the serverstructureId
- the structure id of the resource at which the workplace should be openedpublic void leavePage(java.lang.String targetUri)
I_CmsContextMenuHandler
targetUri
- the target URII_CmsContextMenuHandler.leavePage(java.lang.String)
public void loadContextMenu(CmsUUID structureId, CmsCoreData.AdeContext context)
I_CmsToolbarHandler
structureId
- 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_CmsContextMenuHandler
structureId
- the structure id of the resource to lockI_CmsContextMenuHandler.refreshResource(org.opencms.util.CmsUUID)
public void setActiveButton(I_CmsToolbarButton button)
button
- the buttonpublic void setContextMenuButton(CmsToolbarContextButton button)
button
- the context menu buttonpublic void showPublishDialog()
public void unlockResource(CmsUUID structureId)
I_CmsContextMenuHandler
structureId
- the structure id of the resource to lockI_CmsContextMenuHandler.unlockResource(org.opencms.util.CmsUUID)