Package org.opencms.workplace.editors
Class CmsEditorActionDefault
java.lang.Object
org.opencms.workplace.editors.CmsEditorActionDefault
- All Implemented Interfaces:
I_CmsEditorActionHandler
Provides a method to perform a user defined action when editing a page.
- Since:
- 6.0.0
-
Field Summary
Fields inherited from interface org.opencms.workplace.editors.I_CmsEditorActionHandler
DIRECT_EDIT_AREA_END, DIRECT_EDIT_AREA_START, DIRECT_EDIT_INCLUDE_FILE_URI, DIRECT_EDIT_INCLUDE_FILE_URI_DEFAULT, DIRECT_EDIT_INCLUDES, DIRECT_EDIT_MODE_DISABLED, DIRECT_EDIT_MODE_ENABLED, DIRECT_EDIT_MODE_INACTIVE, DIRECT_EDIT_OPTION_DELETE, DIRECT_EDIT_OPTION_EDIT, DIRECT_EDIT_OPTION_NEW, DIRECT_EDIT_PARAM_BUTTONSTYLE, DIRECT_EDIT_PARAM_ELEMENT, DIRECT_EDIT_PARAM_LOCALE, DIRECT_EDIT_PARAM_NEWLINK, DIRECT_EDIT_PARAM_OPTIONS, DIRECT_EDIT_PARAM_TARGET -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor needed for editor action handler implementation. -
Method Summary
Modifier and TypeMethodDescriptionvoideditorAction(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.booleanisButtonActive(CmsJspActionElement jsp, String resourceName) Returns true if the customized button should be active, otherwise false.
-
Constructor Details
-
CmsEditorActionDefault
public CmsEditorActionDefault()Default constructor needed for editor action handler implementation.
-
-
Method Details
-
editorAction
public void editorAction(CmsEditor editor, CmsJspActionElement jsp) throws IOException, javax.servlet.jsp.JspException Description copied from interface:I_CmsEditorActionHandlerPerforms an action which is configurable in the implementation of the interface, e.g. save, exit, publish.- Specified by:
editorActionin interfaceI_CmsEditorActionHandler- Parameters:
editor- the current editor instancejsp- the JSP action element- Throws:
IOException- if a redirection failsjavax.servlet.jsp.JspException- if including a JSP fails- See Also:
-
getButtonName
Description copied from interface:I_CmsEditorActionHandlerReturns the key name of the button displayed in the editor.- Specified by:
getButtonNamein interfaceI_CmsEditorActionHandler- Returns:
- the key name of the button
- See Also:
-
getButtonUrl
Description copied from interface:I_CmsEditorActionHandlerReturns the URL of the button displayed in the editor.- Specified by:
getButtonUrlin interfaceI_CmsEditorActionHandler- Parameters:
jsp- the JSP action elementresourceName- the name of the edited resource- Returns:
- the URL of the button
- See Also:
-
isButtonActive
Description copied from interface:I_CmsEditorActionHandlerReturns true if the customized button should be active, otherwise false.- Specified by:
isButtonActivein interfaceI_CmsEditorActionHandler- Parameters:
jsp- the JSP action elementresourceName- the name of the edited resource- Returns:
- true if the customized button should be active, otherwise false
- See Also:
-