Package org.opencms.jsp
Class CmsJspTagSimpleDisplay
- java.lang.Object
-
- javax.servlet.jsp.tagext.TagSupport
-
- javax.servlet.jsp.tagext.BodyTagSupport
-
- org.opencms.jsp.CmsJspTagSimpleDisplay
-
- 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
,I_CmsJspTagParamParent
public class CmsJspTagSimpleDisplay extends javax.servlet.jsp.tagext.BodyTagSupport implements I_CmsJspTagParamParent
The 'simpledisplay' tag can be used to display a single resource using a formatter. It also allows to activate direct editing.It is less flexible but simpler to use than the 'display' tag in that it only allows you to specify a single, fixed formatter configuration as an attribute, rather than a set of type-dependent formatters with the displayformatter tag.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CmsJspTagSimpleDisplay()
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addParameter(java.lang.String name, java.lang.String value)
Add a parameter to this tag.int
doEndTag()
int
doStartTag()
boolean
getEditable()
Returns the editable.boolean
getPassSettings()
Returns the passSettings.java.util.Map<java.lang.String,java.lang.String>
getSettings()
Returns the element settings to be used.java.lang.String
getValue()
Returns the value.void
release()
void
setCacheable(boolean cacheable)
Sets the 'cacheable' attribute.void
setCreate(boolean canCreate)
Setter for the "create" attribute of the tag.void
setCreate(java.lang.String canCreate)
Setter for the "create" attribute of the tag.void
setCreationSiteMap(java.lang.String sitePath)
Setter for the "creationSiteMap" attribute of the tag.void
setDelete(boolean canDelete)
Setter for the "delete" attribute of the tag.void
setDelete(java.lang.String canDelete)
Setter for the "delete" attribute of the tag.void
setEditable(boolean editable)
Sets the editable.void
setEditable(java.lang.String editable)
Sets the editable.void
setFormatter(java.lang.String formatter)
Sets the formatter path.void
setFormatterKey(java.lang.String formatterKey)
Sets the formatter key.void
setPassSettings(java.lang.Boolean passSettings)
Sets the passSettings.void
setPostCreateHandler(java.lang.String postCreateHandler)
Setter for the "postCreateHandler" attribute of the tag.void
setSettings(java.util.Map<java.lang.String,java.lang.String> settings)
Sets the element settings to be used.void
setUploadFolder(java.lang.String uploadFolder)
Sets the upload folder.void
setValue(java.lang.String value)
Sets the value.-
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
-
-
-
-
Constructor Detail
-
CmsJspTagSimpleDisplay
public CmsJspTagSimpleDisplay()
Constructor.
-
-
Method Detail
-
addParameter
public void addParameter(java.lang.String name, java.lang.String value)
Description copied from interface:I_CmsJspTagParamParent
Add a parameter to this tag. The intent is that the <param> subtag will call this to register parameters. Assumes that 'name' and 'value' are appropriately encoded and do not contain any meaningful metacharacters; in order words, escaping is the responsibility of the caller.- Specified by:
addParameter
in interfaceI_CmsJspTagParamParent
- Parameters:
name
- the name of the parametervalue
- the value of the parameter- See Also:
I_CmsJspTagParamParent.addParameter(java.lang.String, java.lang.String)
-
doEndTag
public int doEndTag()
- Specified by:
doEndTag
in interfacejavax.servlet.jsp.tagext.Tag
- Overrides:
doEndTag
in classjavax.servlet.jsp.tagext.BodyTagSupport
- See Also:
BodyTagSupport.doEndTag()
-
doStartTag
public int doStartTag()
- Specified by:
doStartTag
in interfacejavax.servlet.jsp.tagext.Tag
- Overrides:
doStartTag
in classjavax.servlet.jsp.tagext.BodyTagSupport
- See Also:
BodyTagSupport.doStartTag()
-
getEditable
public boolean getEditable()
Returns the editable.- Returns:
- the editable
-
getPassSettings
public boolean getPassSettings()
Returns the passSettings.- Returns:
- the passSettings
-
getSettings
public java.util.Map<java.lang.String,java.lang.String> getSettings()
Returns the element settings to be used.- Returns:
- the element settings to be used
-
getValue
public java.lang.String getValue()
Returns the value.- Returns:
- the value
-
release
public void release()
- Specified by:
release
in interfacejavax.servlet.jsp.tagext.Tag
- Overrides:
release
in classjavax.servlet.jsp.tagext.BodyTagSupport
- See Also:
BodyTagSupport.release()
-
setCacheable
public void setCacheable(boolean cacheable)
Sets the 'cacheable' attribute.- Parameters:
cacheable
- controls whether the JSP include should go through the Flex cache or not
-
setCreate
public void setCreate(boolean canCreate)
Setter for the "create" attribute of the tag.- Parameters:
canCreate
- value of the tag's attribute "create".
-
setCreate
public void setCreate(java.lang.String canCreate)
Setter for the "create" attribute of the tag.- Parameters:
canCreate
- value of the tag's attribute "create".
-
setCreationSiteMap
public void setCreationSiteMap(java.lang.String sitePath)
Setter for the "creationSiteMap" attribute of the tag.- Parameters:
sitePath
- value of the "creationSiteMap" attribute of the tag.
-
setDelete
public void setDelete(boolean canDelete)
Setter for the "delete" attribute of the tag.- Parameters:
canDelete
- value of the "delete" attribute of the tag.
-
setDelete
public void setDelete(java.lang.String canDelete)
Setter for the "delete" attribute of the tag.- Parameters:
canDelete
- value of the "delete" attribute of the tag.
-
setEditable
public void setEditable(boolean editable)
Sets the editable.- Parameters:
editable
- the editable to set
-
setEditable
public void setEditable(java.lang.String editable)
Sets the editable.- Parameters:
editable
- the editable to set
-
setFormatter
public void setFormatter(java.lang.String formatter)
Sets the formatter path.- Parameters:
formatter
- the formatter path
-
setFormatterKey
public void setFormatterKey(java.lang.String formatterKey)
Sets the formatter key.- Parameters:
formatterKey
- the formatter key
-
setPassSettings
public void setPassSettings(java.lang.Boolean passSettings)
Sets the passSettings.- Parameters:
passSettings
- the passSettings to set
-
setPostCreateHandler
public void setPostCreateHandler(java.lang.String postCreateHandler)
Setter for the "postCreateHandler" attribute of the tag.- Parameters:
postCreateHandler
- fully qualified class name of theI_CmsCollectorPostCreateHandler
to use.
-
setSettings
public void setSettings(java.util.Map<java.lang.String,java.lang.String> settings)
Sets the element settings to be used.- Parameters:
settings
- the element settings to be used
-
setUploadFolder
public void setUploadFolder(java.lang.String uploadFolder)
Sets the upload folder.- Parameters:
uploadFolder
- the upload folder
-
setValue
public void setValue(java.lang.String value)
Sets the value.- Parameters:
value
- the value to set
-
-