UIComponentTagBase (Java EE 5 SDK)

Java

Java EE 5 SDK

深圳电信培训中心.徐海蛟老师.


javax.faces.webapp Class UIComponentTagBase

java.lang.Object
  extended by javax.faces.webapp.UIComponentTagBase
所有已实现的接口:
JspTag
直接已知子类:
UIComponentClassicTagBase

public abstract class UIComponentTagBase
extends Object
implements JspTag

UIComponentTagBase is the base class for all JSP tags that correspond to a UIComponent instance in the view. This base class allows a single view to be described in a JSP page consisting of both UIComponentELTag and UIComponentTag instances.


字段摘要
protected static Logger log
           
 
构造器摘要
UIComponentTagBase()
           
 
方法摘要
protected abstract  void addChild(UIComponent child)
          Add the component identifier of the specified UIComponent to the list of component identifiers created or located by nested UIComponentTags processing this request.
protected abstract  void addFacet(String name)
          Add the facet name of the specified facet to the list of facet names created or located by nested UIComponentTags processing this request.
abstract  UIComponent getComponentInstance()
          Return the UIComponent instance that is associated with this tag instance.
abstract  String getComponentType()
          Return the component type for the component that is or will be bound to this tag.
abstract  boolean getCreated()
          Return true if we dynamically created a new component instance during execution of this tag.
protected  ELContext getELContext()
          Return the ELContext for the FacesContext for this request.
protected abstract  FacesContext getFacesContext()
          Return the FacesContext instance for the current request.
protected abstract  int getIndexOfNextChildTag()
          Return the index of the next child to be added as a child of this tag.
abstract  String getRendererType()
          Return the rendererType property that selects the Renderer to be used for encoding this component, or null to ask the component to render itself directly.
abstract  void setId(String id)
          Set the component identifier for the component corresponding to this tag instance.
 
类方法继承 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

log

protected static Logger log
构造器详细信息

UIComponentTagBase

public UIComponentTagBase()
方法详细信息

getFacesContext

protected abstract FacesContext getFacesContext()

Return the FacesContext instance for the current request. This value will be non-null only from the beginning of doStartTag() through the end of doEndTag() for each tag instance.


getELContext

protected ELContext getELContext()

Return the ELContext for the FacesContext for this request.

This is a convenience for getFacesContext().getELContext().


addChild

protected abstract void addChild(UIComponent child)

Add the component identifier of the specified UIComponent to the list of component identifiers created or located by nested UIComponentTags processing this request.

参数:
child - New child whose identifier should be added

addFacet

protected abstract void addFacet(String name)

Add the facet name of the specified facet to the list of facet names created or located by nested UIComponentTags processing this request.

参数:
name - Facet name to be added

setId

public abstract void setId(String id)

Set the component identifier for the component corresponding to this tag instance. If the argument begins with UIViewRoot.UNIQUE_ID_PREFIX throw an IllegalArgumentException

参数:
id - The new component identifier. This may not start with UIViewRoot.UNIQUE_ID_PREFIX.
抛出异常:
IllegalArgumentException - if the argument is non-null and starts with UIViewRoot.UNIQUE_ID_PREFIX.

getComponentType

public abstract String getComponentType()

Return the component type for the component that is or will be bound to this tag. This value can be passed to Application.createComponent(java.lang.String) to create the UIComponent instance for this tag. Subclasses must override this method to return the appropriate value.


getRendererType

public abstract String getRendererType()

Return the rendererType property that selects the Renderer to be used for encoding this component, or null to ask the component to render itself directly. Subclasses must override this method to return the appropriate value.


getComponentInstance

public abstract UIComponent getComponentInstance()

Return the UIComponent instance that is associated with this tag instance. This method is designed to be used by tags nested within this tag, and only returns useful results between the execution of doStartTag() and doEndTag() on this tag instance.


getCreated

public abstract boolean getCreated()

Return true if we dynamically created a new component instance during execution of this tag. This method is designed to be used by tags nested within this tag, and only returns useful results between the execution of doStartTag() and doEndTag() on this tag instance.


getIndexOfNextChildTag

protected abstract int getIndexOfNextChildTag()

Return the index of the next child to be added as a child of this tag. The default implementation maintains a list of created components and returns the size of the list.


Java EE 5 SDK

深圳电信培训中心.徐海蛟老师.


提交错误或意见

版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。深圳电信培训中心.徐海蛟老师教学参考.