com.sun.j2ee.blueprints.ui.util
Class AbstractUIComponentTag

java.lang.Object
  extended byjavax.faces.webapp.UIComponentTag
      extended bycom.sun.j2ee.blueprints.ui.util.AbstractUIComponentTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag
Direct Known Subclasses:
AbstractActionSourceUIComponentTag, AbstractValueHolderUIComponentTag, MapTag, RatingTag

public abstract class AbstractUIComponentTag
extends javax.faces.webapp.UIComponentTag

Convenient base class for JSP tag handlers that extend javax.faces.webapp.UIComponentTag. This class handles the tag attributes common to all component tags, and provides convenience methods for setting component properties with either literal values or value binding expressions.


Field Summary
 
Fields inherited from class javax.faces.webapp.UIComponentTag
pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
AbstractUIComponentTag()
           
 
Method Summary
protected  void configureBoolean(javax.faces.component.UIComponent component, java.lang.String name, java.lang.String value)
          Configure a component property of type boolean.
protected  void configureInteger(javax.faces.component.UIComponent component, java.lang.String name, java.lang.String value)
          Configure a component property of type int.
protected  void configureObject(javax.faces.component.UIComponent component, java.lang.String name, java.lang.String value)
          Configure a component property of type Object.
protected  void configureString(javax.faces.component.UIComponent component, java.lang.String name, java.lang.String value)
          Configure a component property of type String.
abstract  java.lang.String getComponentType()
          Return the component type for this tag.
abstract  java.lang.String getRendererType()
          Return the renderer type for this tag.
 java.lang.String getStyle()
           
 void release()
          Release any variables we allocated.
protected  void setProperties(javax.faces.component.UIComponent component)
          Configure attributes set on this tag into the component instance.
 void setStyle(java.lang.String style)
           
 void setStyleClass(java.lang.String styleClass)
           
 
Methods inherited from class javax.faces.webapp.UIComponentTag
doEndTag, doStartTag, encodeBegin, encodeChildren, encodeEnd, findComponent, getComponentInstance, getCreated, getDoEndValue, getDoStartValue, getFacesContext, getFacetName, getId, getParent, getParentUIComponentTag, isSuppressed, isValueReference, setBinding, setId, setPageContext, setParent, setRendered, setupResponseWriter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractUIComponentTag

public AbstractUIComponentTag()
Method Detail

setStyle

public void setStyle(java.lang.String style)

setStyleClass

public void setStyleClass(java.lang.String styleClass)

getComponentType

public abstract java.lang.String getComponentType()

Return the component type for this tag.


getRendererType

public abstract java.lang.String getRendererType()

Return the renderer type for this tag.


getStyle

public java.lang.String getStyle()

release

public void release()

Release any variables we allocated.


setProperties

protected void setProperties(javax.faces.component.UIComponent component)

Configure attributes set on this tag into the component instance.

Parameters:
component - UIComponent being configured

configureBoolean

protected void configureBoolean(javax.faces.component.UIComponent component,
                                java.lang.String name,
                                java.lang.String value)

Configure a component property of type boolean.

Parameters:
component - UIComponent being configured
name - Name of the property being configured
value - Value or expression to configure

configureInteger

protected void configureInteger(javax.faces.component.UIComponent component,
                                java.lang.String name,
                                java.lang.String value)

Configure a component property of type int.

Parameters:
component - UIComponent being configured
name - Name of the property being configured
value - Value or expression to configure

configureObject

protected void configureObject(javax.faces.component.UIComponent component,
                               java.lang.String name,
                               java.lang.String value)

Configure a component property of type Object.

Parameters:
component - UIComponent being configured
name - Name of the property being configured
value - Value or expression to configure

configureString

protected void configureString(javax.faces.component.UIComponent component,
                               java.lang.String name,
                               java.lang.String value)

Configure a component property of type String.

Parameters:
component - UIComponent being configured
name - Name of the property being configured
value - Value or expression to configure