|
Ja-Jakarta Translation |
||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||
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(javax.servlet.jsp.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(javax.servlet.jsp.PageContext pc)
Tag 内の setPageContextpc - ignored.
java.lang.UnsupportedOperationException - Must not be calledpublic void setParent(Tag parentTag)
Tag 内の setParentparentTag - ignored.
java.lang.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 javax.servlet.jsp.JspException
Tag 内の doStartTagjava.lang.UnsupportedOperationException - Must not be called
javax.servlet.jsp.JspException - never thrownBodyTag
public int doEndTag()
throws javax.servlet.jsp.JspException
Tag 内の doEndTagjava.lang.UnsupportedOperationException - Must not be called
javax.servlet.jsp.JspException - never thrownpublic void release()
Tag 内の releasejava.lang.UnsupportedOperationException - Must not be called
|
Ja-Jakarta Translation |
||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||