public class CmsJspTagJQuery extends javax.servlet.jsp.tagext.BodyTagSupport
<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.
| Modifier and Type | Field and Description |
|---|---|
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.
|
| Constructor and Description |
|---|
CmsJspTagJQuery() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
doAfterBody, doEndTag, doInitBody, getBodyContent, getPreviousOut, setBodyContentfindAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValueprotected java.lang.String m_css
protected java.lang.String m_dynamic
protected java.lang.String m_js
public CmsJspTagJQuery()
public int doStartTag() throws javax.servlet.jsp.JspException
doStartTag in interface javax.servlet.jsp.tagext.TagdoStartTag in class javax.servlet.jsp.tagext.BodyTagSupportTag.EVAL_BODY_INCLUDEjavax.servlet.jsp.JspException - in case something goes wrongpublic java.lang.String getCss()
public java.lang.String getDynamic()
public java.lang.String getJs()
public void release()
release in interface javax.servlet.jsp.tagext.Tagrelease in class javax.servlet.jsp.tagext.BodyTagSupportpublic void setCss(java.lang.String css)
css - the css file to setpublic void setDynamic(java.lang.String dynamic)
dynamic - the dynamic flag to setpublic void setJs(java.lang.String js)
js - the javascript file to set