Class CmsContextMenuDialog
java.lang.Object
org.opencms.gwt.client.ui.contextmenu.CmsContextMenuDialog
- All Implemented Interfaces:
I_CmsContextMenuCommand,I_CmsHasContextMenuCommand
public final class CmsContextMenuDialog
extends Object
implements I_CmsHasContextMenuCommand, I_CmsContextMenuCommand
A context menu entry command to open any dialog within an iFrame.
The dialog will be called with the parameter PARAM_CONTENT_STRUCTURE_ID
containing the structure id of the currently edited content if available.
To close the dialog call from within the dialog frame context
window.parent[CLOSING_METHOD_NAME](boolean reload).
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe name of the dialog close method exported to the window context.protected I_CmsContextMenuHandlerThe context menu handler for this command instance.static final StringThe parameter name for the content structure id. -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(org.opencms.util.CmsUUID structureId, I_CmsContextMenuHandler handler, org.opencms.gwt.shared.CmsContextMenuEntryBean menuEntryBean) Executed on context menu item click.static I_CmsContextMenuCommandReturns the context menu command according toI_CmsHasContextMenuCommand.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.protected voidonClose(boolean reload) Executed on dialog close.
-
Field Details
-
CLOSING_METHOD_NAME
The name of the dialog close method exported to the window context.- See Also:
-
PARAM_CONTENT_STRUCTURE_ID
The parameter name for the content structure id.- See Also:
-
-
Method Details
-
getContextMenuCommand
Returns the context menu command according toI_CmsHasContextMenuCommand.- Returns:
- the context menu command
-
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:
-
onClose
Executed on dialog close.- Parameters:
reload-trueif the page should be reloaded
-