public final class CmsContextMenuDialog extends java.lang.Object implements I_CmsHasContextMenuCommand, I_CmsContextMenuCommand
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).
| 限定符和类型 | 字段和说明 |
|---|---|
static java.lang.String |
CLOSING_METHOD_NAME
The name of the dialog close method exported to the window context.
|
protected I_CmsContextMenuHandler |
m_menuHandler
The context menu handler for this command instance.
|
static java.lang.String |
PARAM_CONTENT_STRUCTURE_ID
The parameter name for the content structure id.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
execute(CmsUUID structureId,
I_CmsContextMenuHandler handler,
CmsContextMenuEntryBean menuEntryBean)
Executed on context menu item click.
|
static I_CmsContextMenuCommand |
getContextMenuCommand()
Returns the context menu command according to
I_CmsHasContextMenuCommand. |
A_CmsContextMenuItem |
getItemWidget(CmsUUID structureId,
I_CmsContextMenuHandler handler,
CmsContextMenuEntryBean bean)
Returns the special menu item widget for this command.
|
boolean |
hasItemWidget()
Returns if this command provides it's own menu item widget.
|
protected void |
onClose(boolean reload)
Executed on dialog close.
|
public static final java.lang.String CLOSING_METHOD_NAME
public static final java.lang.String PARAM_CONTENT_STRUCTURE_ID
protected I_CmsContextMenuHandler m_menuHandler
public static I_CmsContextMenuCommand getContextMenuCommand()
I_CmsHasContextMenuCommand.public void execute(CmsUUID structureId, I_CmsContextMenuHandler handler, CmsContextMenuEntryBean menuEntryBean)
I_CmsContextMenuCommandexecute 在接口中 I_CmsContextMenuCommandstructureId - the structure id of the resourcehandler - the context menu handlermenuEntryBean - the context menu entry beanI_CmsContextMenuCommand.execute(org.opencms.util.CmsUUID, org.opencms.gwt.client.ui.contextmenu.I_CmsContextMenuHandler, org.opencms.gwt.shared.CmsContextMenuEntryBean)public A_CmsContextMenuItem getItemWidget(CmsUUID structureId, I_CmsContextMenuHandler handler, CmsContextMenuEntryBean bean)
I_CmsContextMenuCommandgetItemWidget 在接口中 I_CmsContextMenuCommandstructureId - the structure id of the resourcehandler - the context menu handlerbean - the context menu entry beanI_CmsContextMenuCommand.getItemWidget(org.opencms.util.CmsUUID, org.opencms.gwt.client.ui.contextmenu.I_CmsContextMenuHandler, org.opencms.gwt.shared.CmsContextMenuEntryBean)public boolean hasItemWidget()
I_CmsContextMenuCommandhasItemWidget 在接口中 I_CmsContextMenuCommandtrue if this command provides it's own menu item widgetI_CmsContextMenuCommand.hasItemWidget()protected void onClose(boolean reload)
reload - true if the page should be reloaded