org.apache.myfaces.custom.date
Class HtmlDateRenderer

java.lang.Object
  extended by javax.faces.render.Renderer
      extended by org.apache.myfaces.renderkit.html.HtmlRenderer
          extended by org.apache.myfaces.custom.date.HtmlDateRenderer

public class HtmlDateRenderer
extends HtmlRenderer

Version:
$Revision: 279034 $ $Date: 2005-09-06 18:25:27 +0200 (Tue, 06 Sep 2005) $
Author:
Sylvain Vieujot (latest modification by $Author: baranda $)

Field Summary
static java.lang.String DATE_MESSAGE_ID
          The message identifier of the FacesMessage to be created if the creditcard check fails.
 
Constructor Summary
HtmlDateRenderer()
           
 
Method Summary
 void decode(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent)
           
 void encodeEnd(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent)
           
protected static void encodeInputDay(javax.faces.component.UIComponent uiComponent, javax.faces.context.ResponseWriter writer, java.lang.String clientId, HtmlInputDate.UserData userData, boolean disabled, boolean readonly)
           
protected static void encodeInputField(javax.faces.component.UIComponent uiComponent, javax.faces.context.ResponseWriter writer, java.lang.String id, java.lang.String value, int size, boolean disabled, boolean readonly)
           
protected static void encodeInputHours(javax.faces.component.UIComponent uiComponent, javax.faces.context.ResponseWriter writer, java.lang.String clientId, HtmlInputDate.UserData userData, boolean disabled, boolean readonly)
           
protected static void encodeInputMinutes(javax.faces.component.UIComponent uiComponent, javax.faces.context.ResponseWriter writer, java.lang.String clientId, HtmlInputDate.UserData userData, boolean disabled, boolean readonly)
           
protected static void encodeInputMonth(javax.faces.component.UIComponent uiComponent, javax.faces.context.ResponseWriter writer, java.lang.String clientId, HtmlInputDate.UserData userData, java.util.Locale currentLocale, boolean disabled, boolean readonly)
           
protected static void encodeInputSeconds(javax.faces.component.UIComponent uiComponent, javax.faces.context.ResponseWriter writer, java.lang.String clientId, HtmlInputDate.UserData userData, boolean disabled, boolean readonly)
           
protected static void encodeInputYear(javax.faces.component.UIComponent uiComponent, javax.faces.context.ResponseWriter writer, java.lang.String clientId, HtmlInputDate.UserData userData, boolean disabled, boolean readonly)
           
protected  void encodePopupCalendarButton(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent, javax.faces.context.ResponseWriter writer, java.lang.String clientId, java.util.Locale currentLocale)
           
 java.lang.Object getConvertedValue(javax.faces.context.FacesContext context, javax.faces.component.UIComponent uiComponent, java.lang.Object submittedValue)
           
protected  boolean isDisabled(javax.faces.context.FacesContext facesContext, HtmlInputDate inputDate)
           
 
Methods inherited from class org.apache.myfaces.renderkit.html.HtmlRenderer
encodeChildren
 
Methods inherited from class javax.faces.render.Renderer
convertClientId, encodeBegin, getRendersChildren
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DATE_MESSAGE_ID

public static final java.lang.String DATE_MESSAGE_ID

The message identifier of the FacesMessage to be created if the creditcard check fails.

See Also:
Constant Field Values
Constructor Detail

HtmlDateRenderer

public HtmlDateRenderer()
Method Detail

isDisabled

protected boolean isDisabled(javax.faces.context.FacesContext facesContext,
                             HtmlInputDate inputDate)

encodeEnd

public void encodeEnd(javax.faces.context.FacesContext facesContext,
                      javax.faces.component.UIComponent uiComponent)
               throws java.io.IOException
Overrides:
encodeEnd in class javax.faces.render.Renderer
Throws:
java.io.IOException

encodeInputField

protected static void encodeInputField(javax.faces.component.UIComponent uiComponent,
                                       javax.faces.context.ResponseWriter writer,
                                       java.lang.String id,
                                       java.lang.String value,
                                       int size,
                                       boolean disabled,
                                       boolean readonly)
                                throws java.io.IOException
Throws:
java.io.IOException

encodeInputDay

protected static void encodeInputDay(javax.faces.component.UIComponent uiComponent,
                                     javax.faces.context.ResponseWriter writer,
                                     java.lang.String clientId,
                                     HtmlInputDate.UserData userData,
                                     boolean disabled,
                                     boolean readonly)
                              throws java.io.IOException
Throws:
java.io.IOException

encodeInputMonth

protected static void encodeInputMonth(javax.faces.component.UIComponent uiComponent,
                                       javax.faces.context.ResponseWriter writer,
                                       java.lang.String clientId,
                                       HtmlInputDate.UserData userData,
                                       java.util.Locale currentLocale,
                                       boolean disabled,
                                       boolean readonly)
                                throws java.io.IOException
Throws:
java.io.IOException

encodeInputYear

protected static void encodeInputYear(javax.faces.component.UIComponent uiComponent,
                                      javax.faces.context.ResponseWriter writer,
                                      java.lang.String clientId,
                                      HtmlInputDate.UserData userData,
                                      boolean disabled,
                                      boolean readonly)
                               throws java.io.IOException
Throws:
java.io.IOException

encodeInputHours

protected static void encodeInputHours(javax.faces.component.UIComponent uiComponent,
                                       javax.faces.context.ResponseWriter writer,
                                       java.lang.String clientId,
                                       HtmlInputDate.UserData userData,
                                       boolean disabled,
                                       boolean readonly)
                                throws java.io.IOException
Throws:
java.io.IOException

encodeInputMinutes

protected static void encodeInputMinutes(javax.faces.component.UIComponent uiComponent,
                                         javax.faces.context.ResponseWriter writer,
                                         java.lang.String clientId,
                                         HtmlInputDate.UserData userData,
                                         boolean disabled,
                                         boolean readonly)
                                  throws java.io.IOException
Throws:
java.io.IOException

encodeInputSeconds

protected static void encodeInputSeconds(javax.faces.component.UIComponent uiComponent,
                                         javax.faces.context.ResponseWriter writer,
                                         java.lang.String clientId,
                                         HtmlInputDate.UserData userData,
                                         boolean disabled,
                                         boolean readonly)
                                  throws java.io.IOException
Throws:
java.io.IOException

encodePopupCalendarButton

protected void encodePopupCalendarButton(javax.faces.context.FacesContext facesContext,
                                         javax.faces.component.UIComponent uiComponent,
                                         javax.faces.context.ResponseWriter writer,
                                         java.lang.String clientId,
                                         java.util.Locale currentLocale)
                                  throws java.io.IOException
Throws:
java.io.IOException

decode

public void decode(javax.faces.context.FacesContext facesContext,
                   javax.faces.component.UIComponent uiComponent)
Overrides:
decode in class javax.faces.render.Renderer

getConvertedValue

public java.lang.Object getConvertedValue(javax.faces.context.FacesContext context,
                                          javax.faces.component.UIComponent uiComponent,
                                          java.lang.Object submittedValue)
                                   throws javax.faces.convert.ConverterException
Overrides:
getConvertedValue in class javax.faces.render.Renderer
Throws:
javax.faces.convert.ConverterException