com.mycompany.jsf.taglib
Class DataBarTag

java.lang.Object
  extended byjavax.faces.webapp.UIComponentTag
      extended bycom.mycompany.jsf.taglib.DataBarTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.Tag

public class DataBarTag
extends javax.faces.webapp.UIComponentTag

This class is a tag handler that creates and configures a "javax.faces.Data" component with a "com.mycompany.Bar" renderer.

Version:
1.0
Author:
Hans Bergsten, Gefion Software

Field Summary
private  java.lang.String first
           
private  java.lang.String rows
           
private  java.lang.String value
           
private  java.lang.String var
           
 
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
DataBarTag()
           
 
Method Summary
 java.lang.String getComponentType()
          Returns "javax.faces.Data".
 java.lang.String getRendererType()
          Returns "com.mycompany.Bar".
 void setFirst(java.lang.String first)
          Sets the value of the "first" property, i.e., the index for the first row in the component's model to process.
protected  void setProperties(javax.faces.component.UIComponent component)
          Configures the component based on the tag handler property values.
 void setRows(java.lang.String rows)
          Sets the value of the "rows" property, i.e., the number of rows in the component's model to process.
 void setValue(java.lang.String value)
          Sets the component's model value, which must be a JSF value binding expression for a "javax.faces.model.DataModel" instance or a data type for which there is a wrapper model.
 void setVar(java.lang.String var)
          Sets the value of the "var" property, i.e., the name of the request scope variable that holds the current row being processed.
 
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, release, setBinding, setId, setPageContext, setParent, setRendered, setupResponseWriter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

first

private java.lang.String first

rows

private java.lang.String rows

value

private java.lang.String value

var

private java.lang.String var
Constructor Detail

DataBarTag

public DataBarTag()
Method Detail

setFirst

public void setFirst(java.lang.String first)
Sets the value of the "first" property, i.e., the index for the first row in the component's model to process.


setRows

public void setRows(java.lang.String rows)
Sets the value of the "rows" property, i.e., the number of rows in the component's model to process.


setValue

public void setValue(java.lang.String value)
Sets the component's model value, which must be a JSF value binding expression for a "javax.faces.model.DataModel" instance or a data type for which there is a wrapper model. See the "javax.faces.component.UIData" class for details.


setVar

public void setVar(java.lang.String var)
Sets the value of the "var" property, i.e., the name of the request scope variable that holds the current row being processed.


getComponentType

public java.lang.String getComponentType()
Returns "javax.faces.Data".


getRendererType

public java.lang.String getRendererType()
Returns "com.mycompany.Bar".


setProperties

protected void setProperties(javax.faces.component.UIComponent component)
Configures the component based on the tag handler property values.