public class CmsEditorActionDefault extends java.lang.Object implements 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| 构造器和说明 |
|---|
CmsEditorActionDefault()
Default constructor needed for editor action handler implementation.
|
| 限定符和类型 | 方法和说明 |
|---|---|
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.
|
public CmsEditorActionDefault()
public void editorAction(CmsEditor editor, CmsJspActionElement jsp) throws java.io.IOException, javax.servlet.jsp.JspException
I_CmsEditorActionHandlereditorAction 在接口中 I_CmsEditorActionHandlereditor - the current editor instancejsp - the JSP action elementjava.io.IOException - if a redirection failsjavax.servlet.jsp.JspException - if including a JSP failsI_CmsEditorActionHandler.editorAction(org.opencms.workplace.editors.CmsEditor, org.opencms.jsp.CmsJspActionElement)public java.lang.String getButtonName()
I_CmsEditorActionHandlergetButtonName 在接口中 I_CmsEditorActionHandlerI_CmsEditorActionHandler.getButtonName()public java.lang.String getButtonUrl(CmsJspActionElement jsp, java.lang.String resourceName)
I_CmsEditorActionHandlergetButtonUrl 在接口中 I_CmsEditorActionHandlerjsp - the JSP action elementresourceName - the name of the edited resourceI_CmsEditorActionHandler.getButtonUrl(CmsJspActionElement, java.lang.String)public boolean isButtonActive(CmsJspActionElement jsp, java.lang.String resourceName)
I_CmsEditorActionHandlerisButtonActive 在接口中 I_CmsEditorActionHandlerjsp - the JSP action elementresourceName - the name of the edited resourceI_CmsEditorActionHandler.isButtonActive(CmsJspActionElement, java.lang.String)