public final class CmsEditFile extends java.lang.Object implements I_CmsHasContextMenuCommand, I_CmsContextMenuCommand
限定符和类型 | 字段和说明 |
---|---|
protected I_CmsContextMenuHandler |
m_menuHandler
The context menu handler for this command instance.
|
protected boolean |
m_reload
A flag which indicates whether the window should be reloaded after editing.
|
限定符和类型 | 方法和说明 |
---|---|
void |
doEdit(java.lang.String filename,
CmsUUID structureId)
Actually starts the XML content editor for a given file name.
|
void |
execute(CmsUUID structureId,
I_CmsContextMenuHandler handler,
CmsContextMenuEntryBean bean)
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 I_CmsContextMenuHandler m_menuHandler
protected boolean m_reload
public static I_CmsContextMenuCommand getContextMenuCommand()
I_CmsHasContextMenuCommand
.public void doEdit(java.lang.String filename, CmsUUID structureId)
filename
- the file namestructureId
- the file structure idpublic void execute(CmsUUID structureId, I_CmsContextMenuHandler handler, CmsContextMenuEntryBean bean)
I_CmsContextMenuCommand
execute
在接口中 I_CmsContextMenuCommand
structureId
- the structure id of the resourcehandler
- the context menu handlerbean
- 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_CmsContextMenuCommand
getItemWidget
在接口中 I_CmsContextMenuCommand
structureId
- 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_CmsContextMenuCommand
hasItemWidget
在接口中 I_CmsContextMenuCommand
true
if this command provides it's own menu item widgetI_CmsContextMenuCommand.hasItemWidget()