com.mycompany.jsf.taglib
Class InputDatePickerTag

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

public class InputDatePickerTag
extends javax.faces.webapp.UIComponentTag

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

Version:
1.0
Author:
Hans Bergsten, Gefion Software

Field Summary
private  java.lang.String startYear
           
private  java.lang.String styleClass
           
private  java.lang.String value
           
private  java.lang.String years
           
 
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
InputDatePickerTag()
           
 
Method Summary
 java.lang.String getComponentType()
          Returns "javax.faces.Input".
 java.lang.String getRendererType()
          Returns "com.mycompany.DatePicker".
protected  void setProperties(javax.faces.component.UIComponent component)
          Configures the component based on the tag handler property values.
 void setStartYear(java.lang.String startYear)
          Sets the first year to include in the year selection list.
 void setStyleClass(java.lang.String styleClass)
          Sets the CSS class for the rendered "select" elements.
 void setValue(java.lang.String value)
          Sets the component's value.
 void setYears(java.lang.String years)
          Set the number of years to include in the year selection list.
 
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

startYear

private java.lang.String startYear

years

private java.lang.String years

value

private java.lang.String value

styleClass

private java.lang.String styleClass
Constructor Detail

InputDatePickerTag

public InputDatePickerTag()
Method Detail

setStartYear

public void setStartYear(java.lang.String startYear)
Sets the first year to include in the year selection list. The default is two years prior to the current year.


setYears

public void setYears(java.lang.String years)
Set the number of years to include in the year selection list. The default is five years.


setValue

public void setValue(java.lang.String value)
Sets the component's value. This must be a JSF value binding expression for a "java.util.Date" instance.


setStyleClass

public void setStyleClass(java.lang.String styleClass)
Sets the CSS class for the rendered "select" elements.


getComponentType

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


getRendererType

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


setProperties

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