org.apache.struts.taglib.tiles
クラス DefinitionTag

java.lang.Object
  拡張javax.servlet.jsp.tagext.TagSupport
      拡張org.apache.struts.taglib.tiles.DefinitionTagSupport
          拡張org.apache.struts.taglib.tiles.DefinitionTag
すべての実装インタフェース:
javax.servlet.jsp.tagext.IterationTag, PutListTagParent, PutTagParent, java.io.Serializable, javax.servlet.jsp.tagext.Tag

public class DefinitionTag
extends DefinitionTagSupport
implements PutTagParent, PutListTagParent

This is the tag handler for <tiles:definition>, which defines a tiles (or template / component). Definition is put in requested context and can be used in <tiles:insert>.

バージョン:
$Revision: 1.1 $ $Date: 2004/10/20 03:26:43 $
関連項目:
直列化された形式

フィールドの概要
private  ComponentDefinition definition
          Template definition
private  java.lang.String extendsDefinition
          Extends attribute value.
private  java.lang.String id
          Definition identifier.
private  java.lang.String scope
          Scope into which definition will be saved.
 
クラス org.apache.struts.taglib.tiles.DefinitionTagSupport から継承したフィールド
controllerName, controllerType, page, role
 
クラス javax.servlet.jsp.tagext.TagSupport から継承したフィールド
pageContext
 
インタフェース javax.servlet.jsp.tagext.IterationTag から継承したフィールド
EVAL_BODY_AGAIN
 
インタフェース javax.servlet.jsp.tagext.Tag から継承したフィールド
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
コンストラクタの概要
DefinitionTag()
           
 
メソッドの概要
 int doEndTag()
          Process the end tag by putting the definition in appropriate context.
 int doStartTag()
          Process the start tag by creating a new definition.
 java.lang.String getExtends()
          Get extends (parent) definition name.
 java.lang.String getId()
          Get the ID.
 java.lang.String getScope()
          Get the scope.
 void processNestedTag(PutListTag nestedTag)
          Process nested ≶putList> tag.
 void processNestedTag(PutTag nestedTag)
          Process nested ≶put> tag.
 void putAttribute(java.lang.String name, java.lang.Object content)
          This method is a convenience for other tags for putting content into the tile definition.
 void release()
          Reset member values for reuse.
protected  void releaseInternal()
          Release internal references.
 void setExtends(java.lang.String definitionName)
          Set extends (parent) definition name.
 void setId(java.lang.String id)
          Set the ID.
 void setScope(java.lang.String aScope)
          Set the scope.
 
クラス org.apache.struts.taglib.tiles.DefinitionTagSupport から継承したメソッド
getControllerName, getControllerType, getPage, getRole, getTemplate, setController, setControllerClass, setControllerName, setControllerType, setControllerUrl, setPage, setRole, setTemplate
 
クラス javax.servlet.jsp.tagext.TagSupport から継承したメソッド
doAfterBody, findAncestorWithClass, getParent, getValue, getValues, removeValue, setPageContext, setParent, setValue
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
インタフェース javax.servlet.jsp.tagext.IterationTag から継承したメソッド
 

フィールドの詳細

id

private java.lang.String id
Definition identifier.


scope

private java.lang.String scope
Scope into which definition will be saved.


extendsDefinition

private java.lang.String extendsDefinition
Extends attribute value.


definition

private ComponentDefinition definition
Template definition

コンストラクタの詳細

DefinitionTag

public DefinitionTag()
メソッドの詳細

release

public void release()
Reset member values for reuse. This method calls super.release(), which invokes TagSupport.release(), which typically does nothing.

定義:
インタフェース javax.servlet.jsp.tagext.Tag 内の release
オーバーライド:
クラス DefinitionTagSupport 内の release

releaseInternal

protected void releaseInternal()
Release internal references.


putAttribute

public void putAttribute(java.lang.String name,
                         java.lang.Object content)
This method is a convenience for other tags for putting content into the tile definition. Content is already typed by caller.


processNestedTag

public void processNestedTag(PutTag nestedTag)
                      throws javax.servlet.jsp.JspException
Process nested ≶put> tag. Method is called from nested ≶put> tags. Nested list is added to current list. If role is defined, nested attribute is wrapped into an untyped definition containing attribute value and role.

定義:
インタフェース PutTagParent 内の processNestedTag
パラメータ:
nestedTag - Nested tag to process.
例外:
javax.servlet.jsp.JspException

processNestedTag

public void processNestedTag(PutListTag nestedTag)
                      throws javax.servlet.jsp.JspException
Process nested ≶putList> tag. Method is called from nested ≶putList> tags. Nested list is added to current list. If role is defined, nested attribute is wrapped into an untyped definition containing attribute value and role.

定義:
インタフェース PutListTagParent 内の processNestedTag
パラメータ:
nestedTag - Nested PutTag defining the attribute.
例外:
javax.servlet.jsp.JspException

getId

public java.lang.String getId()
Get the ID.

戻り値:
ID

setId

public void setId(java.lang.String id)
Set the ID.

パラメータ:
id - New ID.

getScope

public java.lang.String getScope()
Get the scope.

戻り値:
Scope.

setScope

public void setScope(java.lang.String aScope)
Set the scope.

パラメータ:
aScope - Scope.

setExtends

public void setExtends(java.lang.String definitionName)
Set extends (parent) definition name.

パラメータ:
definitionName - Name of parent definition.

getExtends

public java.lang.String getExtends()
Get extends (parent) definition name.

戻り値:
Name of parent definition.

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Process the start tag by creating a new definition.

定義:
インタフェース javax.servlet.jsp.tagext.Tag 内の doStartTag
例外:
javax.servlet.jsp.JspException - On errors processing tag.

doEndTag

public int doEndTag()
             throws javax.servlet.jsp.JspException
Process the end tag by putting the definition in appropriate context.

定義:
インタフェース javax.servlet.jsp.tagext.Tag 内の doEndTag
例外:
javax.servlet.jsp.JspException - On errors processing tag.


このドキュメントは、Ja-Jakartaにより訳されました。コメントがある場合は、report@jajakarta.orgまでお願いします。
Copyright (C) 2000-2004 - Apache Software Foundation