Class CmsHistory
java.lang.Object
org.opencms.gwt.client.ui.contextmenu.CmsHistory
- All Implemented Interfaces:
I_CmsContextMenuCommand,I_CmsHasContextMenuCommand
public class CmsHistory
extends Object
implements I_CmsHasContextMenuCommand, I_CmsContextMenuCommand
Context menu entry class for the history dialog.
The history dialog allows the user to preview or restore a previous version of a content.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(org.opencms.util.CmsUUID structureId, I_CmsContextMenuHandler handler, org.opencms.gwt.shared.CmsContextMenuEntryBean bean) Executed on context menu item click.static I_CmsContextMenuCommandGets the context menu command.getItemWidget(org.opencms.util.CmsUUID structureId, I_CmsContextMenuHandler handler, org.opencms.gwt.shared.CmsContextMenuEntryBean bean) Returns the special menu item widget for this command.booleanReturns if this command provides it's own menu item widget.static voidloadDialog(org.opencms.util.CmsUUID structureId, I_CmsHistoryActionHandler handler) Loads the data necessary for the history dialog and then displays that dialog.
-
Constructor Details
-
CmsHistory
public CmsHistory()
-
-
Method Details
-
getContextMenuCommand
Gets the context menu command.- Returns:
- the context menu command
-
loadDialog
public static void loadDialog(org.opencms.util.CmsUUID structureId, I_CmsHistoryActionHandler handler) Loads the data necessary for the history dialog and then displays that dialog.- Parameters:
structureId- the structure id for which the history should be loaded.handler- the history action handler to use
-
hasItemWidget
Description copied from interface:I_CmsContextMenuCommandReturns if this command provides it's own menu item widget.- Specified by:
hasItemWidgetin interfaceI_CmsContextMenuCommand- Returns:
trueif this command provides it's own menu item widget- See Also:
-