Class CmsEditFile
java.lang.Object
org.opencms.gwt.client.ui.contextmenu.CmsEditFile
- All Implemented Interfaces:
I_CmsContextMenuCommand,I_CmsHasContextMenuCommand,I_CmsValidatingContextMenuCommand
public final class CmsEditFile
extends Object
implements I_CmsHasContextMenuCommand, I_CmsValidatingContextMenuCommand
A context menu command for editing an XML content.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected I_CmsContextMenuHandlerThe context menu handler for this command instance.protected booleanA flag which indicates whether the window should be reloaded after editing. -
Method Summary
Modifier and TypeMethodDescriptionvoidActually starts the XML content editor for a given file name.voidexecute(org.opencms.util.CmsUUID structureId, I_CmsContextMenuHandler handler, org.opencms.gwt.shared.CmsContextMenuEntryBean bean) 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.booleanChecks if we currently have an editor open somewhere.booleanvalidate(org.opencms.gwt.shared.CmsContextMenuEntryBean entry) Validates whether the context menu command should be visible.
-
Field Details
-
m_reload
A flag which indicates whether the window should be reloaded after editing.
-
Method Details
-
getContextMenuCommand
Returns the context menu command according toI_CmsHasContextMenuCommand.- Returns:
- the context menu command
-
doEdit
Actually starts the XML content editor for a given file name.- Parameters:
filename- the file namestructureId- the file structure id
-
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:
-
isEditorOpen
Checks if we currently have an editor open somewhere.- Returns:
- true if there is an open editor
-