public interface I_CmsEditorActionHandler
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.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DIRECT_EDIT_AREA_END
Deprecated.
|
static java.lang.String |
DIRECT_EDIT_AREA_START
Deprecated.
|
static java.lang.String |
DIRECT_EDIT_INCLUDE_FILE_URI
Deprecated.
not longer used (the file URI is not longer stored in the page context)
|
static java.lang.String |
DIRECT_EDIT_INCLUDE_FILE_URI_DEFAULT
|
static java.lang.String |
DIRECT_EDIT_INCLUDES
Deprecated.
|
static java.lang.String |
DIRECT_EDIT_MODE_DISABLED
Deprecated.
|
static java.lang.String |
DIRECT_EDIT_MODE_ENABLED
Deprecated.
|
static java.lang.String |
DIRECT_EDIT_MODE_INACTIVE
Deprecated.
|
static java.lang.String |
DIRECT_EDIT_OPTION_DELETE
Deprecated.
|
static java.lang.String |
DIRECT_EDIT_OPTION_EDIT
Deprecated.
|
static java.lang.String |
DIRECT_EDIT_OPTION_NEW
Deprecated.
|
static java.lang.String |
DIRECT_EDIT_PARAM_BUTTONSTYLE
Deprecated.
|
static java.lang.String |
DIRECT_EDIT_PARAM_ELEMENT
Deprecated.
|
static java.lang.String |
DIRECT_EDIT_PARAM_LOCALE
Deprecated.
|
static java.lang.String |
DIRECT_EDIT_PARAM_NEWLINK
Deprecated.
|
static java.lang.String |
DIRECT_EDIT_PARAM_OPTIONS
Deprecated.
|
static java.lang.String |
DIRECT_EDIT_PARAM_TARGET
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
editorAction(CmsEditor editor,
CmsJspActionElement jsp)
Performs an action which is configurable in the implementation of the interface, e.g. save, exit, publish.
|
java.lang.String |
getButtonName()
Returns the key name of the button displayed in the editor.
|
java.lang.String |
getButtonUrl(CmsJspActionElement jsp,
java.lang.String resourceName)
Returns the URL of the button displayed in the editor.
|
boolean |
isButtonActive(CmsJspActionElement jsp,
java.lang.String resourceName)
Returns true if the customized button should be active, otherwise false.
|
@Deprecated static final java.lang.String DIRECT_EDIT_AREA_END
CmsDirectEditJspIncludeProvider.DIRECT_EDIT_AREA_END@Deprecated static final java.lang.String DIRECT_EDIT_AREA_START
CmsDirectEditJspIncludeProvider.DIRECT_EDIT_AREA_END@Deprecated static final java.lang.String DIRECT_EDIT_INCLUDE_FILE_URI
@Deprecated static final java.lang.String DIRECT_EDIT_INCLUDE_FILE_URI_DEFAULT
@Deprecated static final java.lang.String DIRECT_EDIT_INCLUDES
CmsDirectEditJspIncludeProvider.DIRECT_EDIT_INCLUDES@Deprecated static final java.lang.String DIRECT_EDIT_MODE_DISABLED
CmsDirectEditPermissions.VALUE_DISABLED or better CmsDirectEditPermissions.DISABLED@Deprecated static final java.lang.String DIRECT_EDIT_MODE_ENABLED
CmsDirectEditPermissions.VALUE_ENABLED or better CmsDirectEditPermissions.ENABLED@Deprecated static final java.lang.String DIRECT_EDIT_MODE_INACTIVE
CmsDirectEditPermissions.VALUE_INACTIVE or better CmsDirectEditPermissions.INACTIVE@Deprecated static final java.lang.String DIRECT_EDIT_OPTION_DELETE
CmsDirectEditButtonSelection.VALUE_DELETE@Deprecated static final java.lang.String DIRECT_EDIT_OPTION_EDIT
CmsDirectEditButtonSelection.VALUE_EDIT or better CmsDirectEditButtonSelection.EDIT@Deprecated static final java.lang.String DIRECT_EDIT_OPTION_NEW
CmsDirectEditButtonSelection.VALUE_NEW@Deprecated static final java.lang.String DIRECT_EDIT_PARAM_BUTTONSTYLE
CmsDirectEditJspIncludeProvider.DIRECT_EDIT_PARAM_BUTTONSTYLE@Deprecated static final java.lang.String DIRECT_EDIT_PARAM_ELEMENT
CmsDirectEditJspIncludeProvider.DIRECT_EDIT_PARAM_ELEMENT@Deprecated static final java.lang.String DIRECT_EDIT_PARAM_LOCALE
CmsDirectEditJspIncludeProvider.DIRECT_EDIT_PARAM_LOCALE@Deprecated static final java.lang.String DIRECT_EDIT_PARAM_NEWLINK
CmsDirectEditJspIncludeProvider.DIRECT_EDIT_PARAM_NEWLINK@Deprecated static final java.lang.String DIRECT_EDIT_PARAM_OPTIONS
CmsDirectEditJspIncludeProvider.DIRECT_EDIT_PARAM_OPTIONS@Deprecated static final java.lang.String DIRECT_EDIT_PARAM_TARGET
CmsDirectEditJspIncludeProvider.DIRECT_EDIT_PARAM_TARGETvoid editorAction(CmsEditor editor, CmsJspActionElement jsp) throws java.io.IOException, javax.servlet.jsp.JspException
editor - the current editor instancejsp - the JSP action elementjava.io.IOException - if a redirection failsjavax.servlet.jsp.JspException - if including a JSP failsjava.lang.String getButtonName()
java.lang.String getButtonUrl(CmsJspActionElement jsp, java.lang.String resourceName)
jsp - the JSP action elementresourceName - the name of the edited resourceboolean isButtonActive(CmsJspActionElement jsp, java.lang.String resourceName)
jsp - the JSP action elementresourceName - the name of the edited resource