|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opencms.workplace.editors.CmsEditorActionDefault
Provides a method to perform a user defined action when editing a page.
Field Summary |
Constructor Summary | |
CmsEditorActionDefault()
Default constructor needed for editor action handler implementation. |
Method Summary | |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CmsEditorActionDefault()
Method Detail |
public void editorAction(CmsEditor editor, CmsJspActionElement jsp) throws java.io.IOException, javax.servlet.jsp.JspException
I_CmsEditorActionHandler
editorAction
in interface I_CmsEditorActionHandler
editor
- the current editor instancejsp
- the JSP action element
javax.servlet.jsp.JspException
- if including a JSP fails
java.io.IOException
- if a redirection failsI_CmsEditorActionHandler.editorAction(org.opencms.workplace.editors.CmsEditor, org.opencms.jsp.CmsJspActionElement)
public java.lang.String getButtonName()
I_CmsEditorActionHandler
getButtonName
in interface I_CmsEditorActionHandler
I_CmsEditorActionHandler.getButtonName()
public java.lang.String getButtonUrl(CmsJspActionElement jsp, java.lang.String resourceName)
I_CmsEditorActionHandler
getButtonUrl
in interface I_CmsEditorActionHandler
jsp
- the JSP action elementresourceName
- the name of the edited resource
I_CmsEditorActionHandler.getButtonUrl(CmsJspActionElement, java.lang.String)
public boolean isButtonActive(CmsJspActionElement jsp, java.lang.String resourceName)
I_CmsEditorActionHandler
isButtonActive
in interface I_CmsEditorActionHandler
jsp
- the JSP action elementresourceName
- the name of the edited resource
I_CmsEditorActionHandler.isButtonActive(CmsJspActionElement, java.lang.String)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |