Package org.opencms.jsp
Class CmsJspTagEnableAde
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
org.opencms.jsp.CmsJspTagEnableAde
- All Implemented Interfaces:
Serializable
,javax.servlet.jsp.tagext.BodyTag
,javax.servlet.jsp.tagext.IterationTag
,javax.servlet.jsp.tagext.JspTag
,javax.servlet.jsp.tagext.Tag
Implementation of the
<enable-ade/>
tag.- Since:
- 7.6
- See Also:
-
Field Summary
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
doEndTag()
Close the direct edit tag, also prints the direct edit HTML to the current page.int
Opens the direct edit tag, if manual mode is set then the next start HTML for the direct edit buttons is printed to the page.static void
enableAdeTagAction
(javax.servlet.jsp.PageContext context) Enable-ade action method.static boolean
isDirectEditDisabled
(javax.servlet.ServletRequest request) Returns if direct edit is disabled for the current request.static void
removeDirectEditFlagFromSession
(javax.servlet.http.HttpSession session) Removes the direct edit flag from session, turning the preview mode off.static void
updateDirectEditFlagInSession
(javax.servlet.ServletRequest request) Updates the direct edit flag in the session and also storing the button left info if available.Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doAfterBody, doInitBody, getBodyContent, getPreviousOut, release, 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
-
Constructor Details
-
CmsJspTagEnableAde
public CmsJspTagEnableAde()
-
-
Method Details
-
enableAdeTagAction
public static void enableAdeTagAction(javax.servlet.jsp.PageContext context) throws javax.servlet.jsp.JspException Enable-ade action method.- Parameters:
context
- the current JSP page context- Throws:
javax.servlet.jsp.JspException
- in case something goes wrong
-
isDirectEditDisabled
Returns if direct edit is disabled for the current request.- Parameters:
request
- the servlet request- Returns:
true
if direct edit is disabled for the current request
-
removeDirectEditFlagFromSession
Removes the direct edit flag from session, turning the preview mode off.- Parameters:
session
- the session
-
updateDirectEditFlagInSession
Updates the direct edit flag in the session and also storing the button left info if available.- Parameters:
request
- the request
-
doEndTag
Close the direct edit tag, also prints the direct edit HTML to the current page.- Specified by:
doEndTag
in interfacejavax.servlet.jsp.tagext.Tag
- Overrides:
doEndTag
in classjavax.servlet.jsp.tagext.BodyTagSupport
- Returns:
Tag.EVAL_PAGE
- Throws:
javax.servlet.jsp.JspException
- in case something goes wrong
-
doStartTag
Opens the direct edit tag, if manual mode is set then the next start HTML for the direct edit buttons is printed to the page.- Specified by:
doStartTag
in interfacejavax.servlet.jsp.tagext.Tag
- Overrides:
doStartTag
in classjavax.servlet.jsp.tagext.BodyTagSupport
- Returns:
Tag.EVAL_BODY_INCLUDE
-