org.opencms.jsp
Class CmsJspTagJQuery

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by javax.servlet.jsp.tagext.BodyTagSupport
          extended by org.opencms.jsp.CmsJspTagJQuery
All Implemented Interfaces:
java.io.Serializable, javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag

public class CmsJspTagJQuery
extends javax.servlet.jsp.tagext.BodyTagSupport

Implementation of the <cms:jquery/> tag.

Since OpenCms version 7.0.5, there is a new core module providing JQuery plus some additional plugins. This tag will include the JQuery javascript library depending on the current project. If the current Project is offline the unpacked version is used, if online the packed version will be used.

Since:
7.0.5
Version:
$Revision: 1.4 $
See Also:
Serialized Form

Field Summary
protected  java.lang.String m_css
          The optional css file to include.
protected  java.lang.String m_dynamic
          If the inclusion should be dynamic with js or not.
protected  java.lang.String m_js
          The javascript file to include.
 
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
CmsJspTagJQuery()
           
 
Method Summary
 int 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.
 java.lang.String getCss()
          Returns the optional css file to include.
 java.lang.String getDynamic()
          Returns the dynamic flag.
 java.lang.String getJs()
          Returns the javascript file to include.
 void release()
          Releases any resources we may have (or inherit).
 void setCss(java.lang.String css)
          Sets the optional css file to include.
 void setDynamic(java.lang.String dynamic)
          Sets the dynamic flag.
 void setJs(java.lang.String js)
          Sets the javascript file to include.
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doAfterBody, doEndTag, 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

m_css

protected java.lang.String m_css
The optional css file to include.


m_dynamic

protected java.lang.String m_dynamic
If the inclusion should be dynamic with js or not.


m_js

protected java.lang.String m_js
The javascript file to include.

Constructor Detail

CmsJspTagJQuery

public CmsJspTagJQuery()
Method Detail

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
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 interface javax.servlet.jsp.tagext.Tag
Overrides:
doStartTag in class javax.servlet.jsp.tagext.BodyTagSupport
Returns:
Tag.EVAL_BODY_INCLUDE
Throws:
javax.servlet.jsp.JspException - in case something goes wrong

getCss

public java.lang.String getCss()
Returns the optional css file to include.

Returns:
the optional css file to include

getDynamic

public java.lang.String getDynamic()
Returns the dynamic flag.

Returns:
the dynamic flag

getJs

public java.lang.String getJs()
Returns the javascript file to include.

Returns:
the javascript file

release

public void release()
Releases any resources we may have (or inherit).

Specified by:
release in interface javax.servlet.jsp.tagext.Tag
Overrides:
release in class javax.servlet.jsp.tagext.BodyTagSupport

setCss

public void setCss(java.lang.String css)
Sets the optional css file to include.

Parameters:
css - the css file to set

setDynamic

public void setDynamic(java.lang.String dynamic)
Sets the dynamic flag.

Parameters:
dynamic - the dynamic flag to set

setJs

public void setJs(java.lang.String js)
Sets the javascript file to include.

Parameters:
js - the javascript file to set