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 String
The name of the dialog close method exported to the window context.protected I_CmsContextMenuHandler
The context menu handler for this command instance.static final String
The parameter name for the content structure id. -
Method Summary
Modifier and TypeMethodDescriptionvoid
execute
(org.opencms.util.CmsUUID structureId, I_CmsContextMenuHandler handler, org.opencms.gwt.shared.CmsContextMenuEntryBean menuEntryBean) Executed on context menu item click.static I_CmsContextMenuCommand
Returns 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.boolean
Returns if this command provides it's own menu item widget.protected void
onClose
(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_CmsContextMenuCommand
Returns if this command provides it's own menu item widget.- Specified by:
hasItemWidget
in interfaceI_CmsContextMenuCommand
- Returns:
true
if this command provides it's own menu item widget- See Also:
-
onClose
Executed on dialog close.- Parameters:
reload
-true
if the page should be reloaded
-