|
||||||||||
| 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
public class CmsJspTagEditable
Implementation of "editable" tag, also used to provide generate the direct edit buttons in the "include" tag.
| Field Summary | |
|---|---|
protected 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 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(PageContext context,
String filename,
ServletRequest req,
ServletResponse res)
Editable action method. |
String |
getFile()
Gets the file with elements for direct editing. |
static String |
includeDirectEditElement(PageContext context,
String element,
String editTarget,
String editElement,
String editOptions,
String editPermissions,
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(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 String m_file
| Constructor Detail |
|---|
public CmsJspTagEditable()
| Method Detail |
|---|
public static 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(PageContext context,
String filename,
ServletRequest req,
ServletResponse res)
throws JspException
context - the current JSP page contextfilename - the source for direct edit elementsreq - the current requestres - current response
JspException - never
public static String includeDirectEditElement(PageContext context,
String element,
String editTarget,
String editElement,
String editOptions,
String editPermissions,
String createLink)
throws 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
JspException - in case something goes wrong
public int doEndTag()
throws JspException
doEndTag in interface TagdoEndTag in class BodyTagSupportJspException - (never thrown, required by interface)public int doStartTag()
doStartTag in interface TagdoStartTag in class BodyTagSupportEVAL_BODY_BUFFEREDTag.doStartTag()public String getFile()
public void release()
release in interface Tagrelease in class BodyTagSupportpublic void setFile(String file)
file - the file to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||