|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
org.opencms.jsp.CmsJspTagEditable
Implementation of "editable" tag, also used to provide generate the direct edit buttons in the "include" tag.
Field Summary | |
protected java.lang.String |
m_file
file with editable elements. |
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
bodyContent |
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
id, pageContext |
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag |
EVAL_BODY_BUFFERED, EVAL_BODY_TAG |
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag |
EVAL_BODY_AGAIN |
Fields inherited from interface javax.servlet.jsp.tagext.Tag |
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
Constructor Summary | |
CmsJspTagEditable()
|
Method Summary | |
static java.lang.String |
createEditOptions(boolean showEdit,
boolean showDelete,
boolean showNew)
Returns an option String for the direct editor generated from the provided values. |
int |
doEndTag()
Simply send our name and value to our appropriate ancestor. |
int |
doStartTag()
|
static void |
editableTagAction(javax.servlet.jsp.PageContext context,
java.lang.String filename,
javax.servlet.ServletRequest req,
javax.servlet.ServletResponse res)
Editable action method. |
java.lang.String |
getFile()
Gets the file with elements for direct editing. |
static java.lang.String |
includeDirectEditElement(javax.servlet.jsp.PageContext context,
java.lang.String element,
java.lang.String editTarget,
java.lang.String editElement,
java.lang.String editOptions,
java.lang.String editPermissions,
java.lang.String createLink)
Includes the "direct edit" element that adds HTML for the editable area to the output page. |
void |
release()
Releases any resources we may have (or inherit). |
void |
setFile(java.lang.String file)
Sets the file with elements for direct editing. |
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
doAfterBody, doInitBody, getBodyContent, getPreviousOut, setBodyContent |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.servlet.jsp.tagext.Tag |
getParent, setPageContext, setParent |
Field Detail |
protected java.lang.String m_file
Constructor Detail |
public CmsJspTagEditable()
Method Detail |
public static java.lang.String createEditOptions(boolean showEdit, boolean showDelete, boolean showNew)
showEdit
- indicates that the edit button should be shownshowDelete
- indicates that the delete button should be shownshowNew
- indicates that the new button should be shown
public static void editableTagAction(javax.servlet.jsp.PageContext context, java.lang.String filename, javax.servlet.ServletRequest req, javax.servlet.ServletResponse res) throws javax.servlet.jsp.JspException
context
- the current JSP page contextfilename
- the source for direct edit elementsreq
- the current requestres
- current response
javax.servlet.jsp.JspException
- neverpublic static java.lang.String includeDirectEditElement(javax.servlet.jsp.PageContext context, java.lang.String element, java.lang.String editTarget, java.lang.String editElement, java.lang.String editOptions, java.lang.String editPermissions, java.lang.String createLink) throws javax.servlet.jsp.JspException
context
- the current JSP page contextelement
- the editor element to includeeditTarget
- the direct edit targeteditElement
- the direct edit elementeditOptions
- the direct edit optionseditPermissions
- the direct edit permissionscreateLink
- the direct edit create link
javax.servlet.jsp.JspException
- in case something goes wrongpublic int doEndTag() throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspException
- (never thrown, required by interface)public int doStartTag()
EVAL_BODY_BUFFERED
Tag.doStartTag()
public java.lang.String getFile()
public void release()
public void setFile(java.lang.String file)
file
- the file to set
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |