public class CmsJspTagDevice extends javax.servlet.jsp.tagext.BodyTagSupport
<cms:device type="...">-Tag
with the attribute type to specify the device.| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
m_type
Device for output.
|
| Constructor and Description |
|---|
CmsJspTagDevice() |
| Modifier and Type | Method and Description |
|---|---|
int |
doEndTag()
Close the device tag.
|
int |
doStartTag()
Decides on the base of the device selector interface whether the user's device is in
the selected device types or not.
|
java.lang.String |
getType()
Returns the device type.
|
void |
release()
Releases any resources we may have (or inherit).
|
void |
setType(java.lang.String type)
Sets the type for the device.
|
doAfterBody, doInitBody, getBodyContent, getPreviousOut, setBodyContentfindAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValueprotected java.lang.String m_type
public CmsJspTagDevice()
public int doEndTag()
doEndTag in interface javax.servlet.jsp.tagext.TagdoEndTag in class javax.servlet.jsp.tagext.BodyTagSupportTag.EVAL_PAGEpublic int doStartTag()
If the user's device is in the list of possible devices the content inside the tag is printed out and otherwise the content won't be printed out.
doStartTag in interface javax.servlet.jsp.tagext.TagdoStartTag in class javax.servlet.jsp.tagext.BodyTagSupportTag.EVAL_BODY_INCLUDETag.SKIP_BODYpublic java.lang.String getType()
public void release()
release in interface javax.servlet.jsp.tagext.Tagrelease in class javax.servlet.jsp.tagext.BodyTagSupportpublic void setType(java.lang.String type)
type - the device type