public class CmsJspTagDecorate extends javax.servlet.jsp.tagext.BodyTagSupport
<cms:decorate></cms:decorate>
tag to decorate HTML content with configurated decoration maps.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEFAULT_DECORATOR_CONFIGURATION
The name of the default decorator configuration.
|
static java.lang.String |
PROPERTY_CATEGORY
The property to store the decorator classname .
|
| Constructor and Description |
|---|
CmsJspTagDecorate() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
decorateTagAction(java.lang.String content,
java.lang.String configFile,
java.lang.String locale,
javax.servlet.ServletRequest req)
Internal action method.
|
int |
doEndTag() |
java.lang.String |
getFile()
Returns the file name.
|
java.lang.String |
getLocale()
Returns the locale name.
|
java.lang.String |
getNoAutoCloseTags()
Getter for the attribute "noAutoCloseTags" of the <cms:parse> tag.
|
boolean |
isAllowInlineEdit()
Returns if the parse action should be disabled to allow inline editing in the container page editor.
|
void |
setAllowInlineEdit(boolean allowInlineEdit)
Sets if the parse action should be disabled to allow inline editing in the container page editor.
|
void |
setFile(java.lang.String file)
Sets the file name.
|
void |
setLocale(java.lang.String locale)
Sets the locale name.
|
void |
setNoAutoCloseTags(java.lang.String noAutoCloseTagList)
Setter for the attribute "noAutoCloseTags" of the <cms:parse> tag.
|
doAfterBody, doInitBody, doStartTag, getBodyContent, getPreviousOut, release, setBodyContentfindAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValuepublic static final java.lang.String DEFAULT_DECORATOR_CONFIGURATION
public static final java.lang.String PROPERTY_CATEGORY
public CmsJspTagDecorate()
public java.lang.String decorateTagAction(java.lang.String content, java.lang.String configFile, java.lang.String locale, javax.servlet.ServletRequest req)
DEcorates a HTMl content block.
content - the content to be decoratedconfigFile - the config filelocale - the locale to use for decoration or NOLOCALE if not locale should be usedreq - the current requestpublic int doEndTag() throws javax.servlet.jsp.JspException
doEndTag in interface javax.servlet.jsp.tagext.TagdoEndTag in class javax.servlet.jsp.tagext.BodyTagSupportjavax.servlet.jsp.JspException - in case something goes wrongTag.doEndTag()public java.lang.String getFile()
public java.lang.String getLocale()
public java.lang.String getNoAutoCloseTags()
Returns a String that consists of the comma-separated upper case tag names for which this
tag will not correct missing closing tags.
public boolean isAllowInlineEdit()
true if the parse action should be disabled to allow inline editing in the container page editorpublic void setAllowInlineEdit(boolean allowInlineEdit)
allowInlineEdit - true to allow inline editingpublic void setFile(java.lang.String file)
file - the file namepublic void setLocale(java.lang.String locale)
locale - the locale namepublic void setNoAutoCloseTags(java.lang.String noAutoCloseTagList)
Awaits a String that consists of the comma-separated upper case tag names for which this
tag should not correct missing closing tags.
noAutoCloseTagList - a String that consists of the comma-separated upper case tag names for which this
tag should not correct missing closing tags.