public class CmsJspTagDevice
extends javax.servlet.jsp.tagext.BodyTagSupport
<cms:device type="...">
-Tag
with the attribute type
to specify the device.限定符和类型 | 字段和说明 |
---|---|
protected java.lang.String |
m_type
Device for output.
|
构造器和说明 |
---|
CmsJspTagDevice() |
限定符和类型 | 方法和说明 |
---|---|
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, setBodyContent
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
public int doEndTag()
doEndTag
在接口中 javax.servlet.jsp.tagext.Tag
doEndTag
在类中 javax.servlet.jsp.tagext.BodyTagSupport
Tag.EVAL_PAGE
public 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
在接口中 javax.servlet.jsp.tagext.Tag
doStartTag
在类中 javax.servlet.jsp.tagext.BodyTagSupport
Tag.EVAL_BODY_INCLUDE
Tag.SKIP_BODY
public java.lang.String getType()
public void release()
release
在接口中 javax.servlet.jsp.tagext.Tag
release
在类中 javax.servlet.jsp.tagext.BodyTagSupport
public void setType(java.lang.String type)
type
- the device type