Package org.opencms.workplace.editors
Interface I_CmsEditorActionHandler
- All Known Implementing Classes:
CmsEditorActionDefault
public interface I_CmsEditorActionHandler
Provides a method for performing an individual action if the user pressed a special button in the editor.
You can define the class of your own editor action method in the OpenCms XML configuration files. The class you enter must implement this interface to perform the editor action.
- Since:
- 6.0.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Deprecated.static final String
Deprecated.static final String
Deprecated.not longer used (the file URI is not longer stored in the page context)static final String
static final String
Deprecated.static final String
Deprecated.static final String
Deprecated.static final String
Deprecated.static final String
Deprecated.static final String
Deprecated.static final String
Deprecated.static final String
Deprecated.static final String
Deprecated.static final String
Deprecated.static final String
Deprecated.static final String
Deprecated.static final String
Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionvoid
editorAction
(CmsEditor editor, CmsJspActionElement jsp) Performs an action which is configurable in the implementation of the interface, e.g.Returns the key name of the button displayed in the editor.getButtonUrl
(CmsJspActionElement jsp, String resourceName) Returns the URL of the button displayed in the editor.boolean
isButtonActive
(CmsJspActionElement jsp, String resourceName) Returns true if the customized button should be active, otherwise false.
-
Field Details
-
DIRECT_EDIT_AREA_END
Deprecated.Prefix for direct edit end elements, used on JPS pages that supply the direct edit html.- See Also:
-
DIRECT_EDIT_AREA_START
Deprecated.Prefix for direct edit start elements, used on JPS pages that supply the direct edit html.- See Also:
-
DIRECT_EDIT_INCLUDE_FILE_URI
Deprecated.not longer used (the file URI is not longer stored in the page context)Key to identify the direct edit configuration file.- See Also:
-
DIRECT_EDIT_INCLUDE_FILE_URI_DEFAULT
Default direct edit include file URI.- See Also:
-
DIRECT_EDIT_INCLUDES
Deprecated.Element name for direct edit includes.- See Also:
-
DIRECT_EDIT_MODE_DISABLED
Deprecated.Constant for: direct edit mode disabled.- See Also:
-
DIRECT_EDIT_MODE_ENABLED
Deprecated.Constant for: direct edit mode enabled.- See Also:
-
DIRECT_EDIT_MODE_INACTIVE
Deprecated.Constant for: direct edit mode inactive.- See Also:
-
DIRECT_EDIT_OPTION_DELETE
Deprecated.Option value that indicates the "delete" button should be displayed.- See Also:
-
DIRECT_EDIT_OPTION_EDIT
Deprecated.Option value that indicates the "edit" button should be displayed.- See Also:
-
DIRECT_EDIT_OPTION_NEW
Deprecated.Option value that indicates the "new" button should be displayed.- See Also:
-
DIRECT_EDIT_PARAM_BUTTONSTYLE
Deprecated.Key to identify the edit button style, used on JPS pages that supply the direct edit html.- See Also:
-
DIRECT_EDIT_PARAM_ELEMENT
Deprecated.Key to identify the edit element, used on JPS pages that supply the direct edit html.- See Also:
-
DIRECT_EDIT_PARAM_LOCALE
Deprecated.Key to identify the edit language, used on JPS pages that supply the direct edit html.- See Also:
-
DIRECT_EDIT_PARAM_NEWLINK
Deprecated.Key to identify the link to use for the "new" button (if enabled).- See Also:
-
DIRECT_EDIT_PARAM_OPTIONS
Deprecated.Key to identify additional direct edit options, used e.g. to control which direct edit buttons are displayed- See Also:
-
DIRECT_EDIT_PARAM_TARGET
Deprecated.Key to identify the edit target, used on JPS pages that supply the direct edit html.- See Also:
-
-
Method Details
-
editorAction
void editorAction(CmsEditor editor, CmsJspActionElement jsp) throws IOException, javax.servlet.jsp.JspException Performs an action which is configurable in the implementation of the interface, e.g. save, exit, publish.- Parameters:
editor
- the current editor instancejsp
- the JSP action element- Throws:
IOException
- if a redirection failsjavax.servlet.jsp.JspException
- if including a JSP fails
-
getButtonName
Returns the key name of the button displayed in the editor.- Returns:
- the key name of the button
-
getButtonUrl
Returns the URL of the button displayed in the editor.- Parameters:
jsp
- the JSP action elementresourceName
- the name of the edited resource- Returns:
- the URL of the button
-
isButtonActive
Returns true if the customized button should be active, otherwise false.- Parameters:
jsp
- the JSP action elementresourceName
- the name of the edited resource- Returns:
- true if the customized button should be active, otherwise false
-
CmsDirectEditJspIncludeProvider.DIRECT_EDIT_AREA_END