org.apache.myfaces.custom.date
Class HtmlDateRenderer
java.lang.Object
   javax.faces.render.Renderer
javax.faces.render.Renderer
       org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlRenderer
org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlRenderer
           org.apache.myfaces.custom.date.HtmlDateRenderer
org.apache.myfaces.custom.date.HtmlDateRenderer
- public class HtmlDateRenderer 
- extends HtmlRenderer
- Version:
- $Revision: 992388 $ $Date: 2010-09-03 12:30:51 -0500 (Fri, 03 Sep 2010) $
- Author:
- Sylvain Vieujot (latest modification by $Author: lu4242 $)
| Field Summary | 
| static String | DATE_MESSAGE_IDThe message identifier of the
 FacesMessageto be created if
 the input is not a valid date. | 
 
 
| Method Summary | 
|  void | decode(javax.faces.context.FacesContext facesContext,
       javax.faces.component.UIComponent uiComponent)
 | 
| protected  void | encodeAmpmChoice(DateFormatSymbols symbols,
                 javax.faces.component.UIComponent uiComponent,
                 javax.faces.context.ResponseWriter writer,
                 int calendar_ampm,
                 int selected)
 | 
| protected  void | encodeEmptyInputMonthSelection(javax.faces.component.UIComponent component,
                               javax.faces.context.ResponseWriter writer,
                               int selectedMonth)
 | 
| protected  void | encodeEmtypAmpmChoice(javax.faces.component.UIComponent component,
                      javax.faces.context.ResponseWriter writer,
                      int selectedAmpm)
 | 
|  void | encodeEnd(javax.faces.context.FacesContext facesContext,
          javax.faces.component.UIComponent uiComponent)
 | 
| protected  void | encodeInputAmpm(javax.faces.component.UIComponent uiComponent,
                javax.faces.context.ResponseWriter writer,
                String clientId,
                AbstractHtmlInputDate.UserData userData,
                boolean disabled,
                boolean readonly,
                Locale currentLocale)
 | 
| protected  void | encodeInputDay(javax.faces.component.UIComponent uiComponent,
               javax.faces.context.ResponseWriter writer,
               String clientId,
               AbstractHtmlInputDate.UserData userData,
               boolean disabled,
               boolean readonly)
 | 
| protected  void | encodeInputField(javax.faces.component.UIComponent uiComponent,
                 javax.faces.context.ResponseWriter writer,
                 String id,
                 String value,
                 int size,
                 boolean disabled,
                 boolean readonly)
 | 
| protected  void | encodeInputHours(javax.faces.component.UIComponent uiComponent,
                 javax.faces.context.ResponseWriter writer,
                 String clientId,
                 AbstractHtmlInputDate.UserData userData,
                 boolean disabled,
                 boolean readonly)
 | 
| protected  void | encodeInputMinutes(javax.faces.component.UIComponent uiComponent,
                   javax.faces.context.ResponseWriter writer,
                   String clientId,
                   AbstractHtmlInputDate.UserData userData,
                   boolean disabled,
                   boolean readonly)
 | 
| protected  void | encodeInputMonth(javax.faces.component.UIComponent uiComponent,
                 javax.faces.context.ResponseWriter writer,
                 String clientId,
                 AbstractHtmlInputDate.UserData userData,
                 Locale currentLocale,
                 boolean disabled,
                 boolean readonly)
 | 
| protected  void | encodeInputSeconds(javax.faces.component.UIComponent uiComponent,
                   javax.faces.context.ResponseWriter writer,
                   String clientId,
                   AbstractHtmlInputDate.UserData userData,
                   boolean disabled,
                   boolean readonly)
 | 
| protected  void | encodeInputYear(javax.faces.component.UIComponent uiComponent,
                javax.faces.context.ResponseWriter writer,
                String clientId,
                AbstractHtmlInputDate.UserData userData,
                boolean disabled,
                boolean readonly)
 | 
| protected  void | encodePopupCalendarButton(javax.faces.context.FacesContext facesContext,
                          javax.faces.component.UIComponent uiComponent,
                          javax.faces.context.ResponseWriter writer,
                          String clientId,
                          Locale currentLocale)
 | 
| static String | getClientIdForDaySubcomponent(String clientId)
 | 
|  Object | getConvertedValue(javax.faces.context.FacesContext context,
                  javax.faces.component.UIComponent uiComponent,
                  Object submittedValue)
 | 
| protected  boolean | isDisabled(javax.faces.context.FacesContext facesContext,
           HtmlInputDate inputDate)
 | 
 
 
| Methods inherited from class javax.faces.render.Renderer | 
| convertClientId, encodeBegin, encodeChildren, getRendersChildren | 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
DATE_MESSAGE_ID
public static final String DATE_MESSAGE_ID
- The message identifier of the - FacesMessageto be created if
 the input is not a valid date.
 - 
 - 
- See Also:
- Constant Field Values
 
HtmlDateRenderer
public HtmlDateRenderer()
getClientIdForDaySubcomponent
public static String getClientIdForDaySubcomponent(String clientId)
- 
 
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 IOException
- 
- Overrides:
- encodeEndin class- javax.faces.render.Renderer
 
- 
- Throws:
- IOException
 
encodeInputField
protected void encodeInputField(javax.faces.component.UIComponent uiComponent,
                                javax.faces.context.ResponseWriter writer,
                                String id,
                                String value,
                                int size,
                                boolean disabled,
                                boolean readonly)
                         throws IOException
- 
- Throws:
- IOException
 
encodeInputDay
protected void encodeInputDay(javax.faces.component.UIComponent uiComponent,
                              javax.faces.context.ResponseWriter writer,
                              String clientId,
                              AbstractHtmlInputDate.UserData userData,
                              boolean disabled,
                              boolean readonly)
                       throws IOException
- 
- Throws:
- IOException
 
encodeInputMonth
protected void encodeInputMonth(javax.faces.component.UIComponent uiComponent,
                                javax.faces.context.ResponseWriter writer,
                                String clientId,
                                AbstractHtmlInputDate.UserData userData,
                                Locale currentLocale,
                                boolean disabled,
                                boolean readonly)
                         throws IOException
- 
- Throws:
- IOException
 
encodeEmptyInputMonthSelection
protected void encodeEmptyInputMonthSelection(javax.faces.component.UIComponent component,
                                              javax.faces.context.ResponseWriter writer,
                                              int selectedMonth)
                                       throws IOException
- 
- Throws:
- IOException
 
encodeInputYear
protected void encodeInputYear(javax.faces.component.UIComponent uiComponent,
                               javax.faces.context.ResponseWriter writer,
                               String clientId,
                               AbstractHtmlInputDate.UserData userData,
                               boolean disabled,
                               boolean readonly)
                        throws IOException
- 
- Throws:
- IOException
 
encodeInputHours
protected void encodeInputHours(javax.faces.component.UIComponent uiComponent,
                                javax.faces.context.ResponseWriter writer,
                                String clientId,
                                AbstractHtmlInputDate.UserData userData,
                                boolean disabled,
                                boolean readonly)
                         throws IOException
- 
- Throws:
- IOException
 
encodeInputMinutes
protected void encodeInputMinutes(javax.faces.component.UIComponent uiComponent,
                                  javax.faces.context.ResponseWriter writer,
                                  String clientId,
                                  AbstractHtmlInputDate.UserData userData,
                                  boolean disabled,
                                  boolean readonly)
                           throws IOException
- 
- Throws:
- IOException
 
encodeInputSeconds
protected void encodeInputSeconds(javax.faces.component.UIComponent uiComponent,
                                  javax.faces.context.ResponseWriter writer,
                                  String clientId,
                                  AbstractHtmlInputDate.UserData userData,
                                  boolean disabled,
                                  boolean readonly)
                           throws IOException
- 
- Throws:
- IOException
 
encodeAmpmChoice
protected void encodeAmpmChoice(DateFormatSymbols symbols,
                                javax.faces.component.UIComponent uiComponent,
                                javax.faces.context.ResponseWriter writer,
                                int calendar_ampm,
                                int selected)
                         throws IOException
- 
- Throws:
- IOException
 
encodeInputAmpm
protected void encodeInputAmpm(javax.faces.component.UIComponent uiComponent,
                               javax.faces.context.ResponseWriter writer,
                               String clientId,
                               AbstractHtmlInputDate.UserData userData,
                               boolean disabled,
                               boolean readonly,
                               Locale currentLocale)
                        throws IOException
- 
- Throws:
- IOException
 
encodeEmtypAmpmChoice
protected void encodeEmtypAmpmChoice(javax.faces.component.UIComponent component,
                                     javax.faces.context.ResponseWriter writer,
                                     int selectedAmpm)
                              throws IOException
- 
- Throws:
- IOException
 
encodePopupCalendarButton
protected void encodePopupCalendarButton(javax.faces.context.FacesContext facesContext,
                                         javax.faces.component.UIComponent uiComponent,
                                         javax.faces.context.ResponseWriter writer,
                                         String clientId,
                                         Locale currentLocale)
                                  throws IOException
- 
- Throws:
- IOException
 
decode
public void decode(javax.faces.context.FacesContext facesContext,
                   javax.faces.component.UIComponent uiComponent)
- 
- Overrides:
- decodein class- javax.faces.render.Renderer
 
- 
 
getConvertedValue
public Object getConvertedValue(javax.faces.context.FacesContext context,
                                javax.faces.component.UIComponent uiComponent,
                                Object submittedValue)
                         throws javax.faces.convert.ConverterException
- 
- Overrides:
- getConvertedValuein class- javax.faces.render.Renderer
 
- 
- Throws:
- javax.faces.convert.ConverterException
 
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.