|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectjavax.servlet.jsp.tagext.TagAdapter
public class TagAdapter
Wraps any SimpleTag and exposes it using a Tag interface. This is used to allow collaboration between classic Tag handlers and SimpleTag handlers.
Because SimpleTag does not extend Tag, and because Tag.setParent() only accepts a Tag instance, a classic tag handler (one that implements Tag) cannot have a SimpleTag as its parent. To remedy this, a TagAdapter is created to wrap the SimpleTag parent, and the adapter is passed to setParent() instead. A classic Tag Handler can call getAdaptee() to retrieve the encapsulated SimpleTag instance.
| 字段摘要 |
|---|
| 从接口 javax.servlet.jsp.tagext.Tag 继承的字段 |
|---|
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
| 构造方法摘要 | |
|---|---|
TagAdapter(SimpleTag adaptee)
Creates a new TagAdapter that wraps the given SimpleTag and returns the parent tag when getParent() is called. |
|
| 方法摘要 | |
|---|---|
int |
doEndTag()
Must not be called. |
int |
doStartTag()
Must not be called. |
JspTag |
getAdaptee()
Gets the tag that is being adapted to the Tag interface. |
Tag |
getParent()
Returns the parent of this tag, which is always getAdaptee().getParent(). |
void |
release()
Must not be called. |
void |
setPageContext(PageContext pc)
Must not be called. |
void |
setParent(Tag parentTag)
Must not be called. |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 构造方法详细信息 |
|---|
public TagAdapter(SimpleTag adaptee)
adaptee - The SimpleTag being adapted as a Tag.| 方法详细信息 |
|---|
public void setPageContext(PageContext pc)
Tag 中的 setPageContextpc - ignored.
UnsupportedOperationException - Must not be calledpublic void setParent(Tag parentTag)
Tag 中的 setParentparentTag - ignored.
UnsupportedOperationException - Must not be called.public Tag getParent()
Tag 中的 getParentTagSupport.findAncestorWithClass(javax.servlet.jsp.tagext.Tag, java.lang.Class)public JspTag getAdaptee()
public int doStartTag()
throws JspException
Tag 中的 doStartTagUnsupportedOperationException - Must not be called
JspException - never thrownBodyTag
public int doEndTag()
throws JspException
Tag 中的 doEndTagUnsupportedOperationException - Must not be called
JspException - never thrownpublic void release()
Tag 中的 releaseUnsupportedOperationException - Must not be called
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||