org.apache.myfaces.custom.date
Class HtmlDateRenderer
java.lang.Object
javax.faces.render.Renderer
org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlRenderer
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 java.lang.String |
DATE_MESSAGE_ID
The message identifier of the FacesMessage to 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(java.text.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,
java.lang.String clientId,
AbstractHtmlInputDate.UserData userData,
boolean disabled,
boolean readonly,
java.util.Locale currentLocale)
|
protected void |
encodeInputDay(javax.faces.component.UIComponent uiComponent,
javax.faces.context.ResponseWriter writer,
java.lang.String clientId,
AbstractHtmlInputDate.UserData userData,
boolean disabled,
boolean readonly)
|
protected 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 void |
encodeInputHours(javax.faces.component.UIComponent uiComponent,
javax.faces.context.ResponseWriter writer,
java.lang.String clientId,
AbstractHtmlInputDate.UserData userData,
boolean disabled,
boolean readonly)
|
protected void |
encodeInputMinutes(javax.faces.component.UIComponent uiComponent,
javax.faces.context.ResponseWriter writer,
java.lang.String clientId,
AbstractHtmlInputDate.UserData userData,
boolean disabled,
boolean readonly)
|
protected void |
encodeInputMonth(javax.faces.component.UIComponent uiComponent,
javax.faces.context.ResponseWriter writer,
java.lang.String clientId,
AbstractHtmlInputDate.UserData userData,
java.util.Locale currentLocale,
boolean disabled,
boolean readonly)
|
protected void |
encodeInputSeconds(javax.faces.component.UIComponent uiComponent,
javax.faces.context.ResponseWriter writer,
java.lang.String clientId,
AbstractHtmlInputDate.UserData userData,
boolean disabled,
boolean readonly)
|
protected void |
encodeInputYear(javax.faces.component.UIComponent uiComponent,
javax.faces.context.ResponseWriter writer,
java.lang.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,
java.lang.String clientId,
java.util.Locale currentLocale)
|
static java.lang.String |
getClientIdForDaySubcomponent(java.lang.String clientId)
|
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 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 java.lang.String DATE_MESSAGE_ID
The message identifier of the FacesMessage
to be created if
the input is not a valid date.
- See Also:
- Constant Field Values
HtmlDateRenderer
public HtmlDateRenderer()
getClientIdForDaySubcomponent
public static java.lang.String getClientIdForDaySubcomponent(java.lang.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 java.io.IOException
- Overrides:
encodeEnd
in class javax.faces.render.Renderer
- Throws:
java.io.IOException
encodeInputField
protected 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 void encodeInputDay(javax.faces.component.UIComponent uiComponent,
javax.faces.context.ResponseWriter writer,
java.lang.String clientId,
AbstractHtmlInputDate.UserData userData,
boolean disabled,
boolean readonly)
throws java.io.IOException
- Throws:
java.io.IOException
encodeInputMonth
protected void encodeInputMonth(javax.faces.component.UIComponent uiComponent,
javax.faces.context.ResponseWriter writer,
java.lang.String clientId,
AbstractHtmlInputDate.UserData userData,
java.util.Locale currentLocale,
boolean disabled,
boolean readonly)
throws java.io.IOException
- Throws:
java.io.IOException
encodeEmptyInputMonthSelection
protected void encodeEmptyInputMonthSelection(javax.faces.component.UIComponent component,
javax.faces.context.ResponseWriter writer,
int selectedMonth)
throws java.io.IOException
- Throws:
java.io.IOException
encodeInputYear
protected void encodeInputYear(javax.faces.component.UIComponent uiComponent,
javax.faces.context.ResponseWriter writer,
java.lang.String clientId,
AbstractHtmlInputDate.UserData userData,
boolean disabled,
boolean readonly)
throws java.io.IOException
- Throws:
java.io.IOException
encodeInputHours
protected void encodeInputHours(javax.faces.component.UIComponent uiComponent,
javax.faces.context.ResponseWriter writer,
java.lang.String clientId,
AbstractHtmlInputDate.UserData userData,
boolean disabled,
boolean readonly)
throws java.io.IOException
- Throws:
java.io.IOException
encodeInputMinutes
protected void encodeInputMinutes(javax.faces.component.UIComponent uiComponent,
javax.faces.context.ResponseWriter writer,
java.lang.String clientId,
AbstractHtmlInputDate.UserData userData,
boolean disabled,
boolean readonly)
throws java.io.IOException
- Throws:
java.io.IOException
encodeInputSeconds
protected void encodeInputSeconds(javax.faces.component.UIComponent uiComponent,
javax.faces.context.ResponseWriter writer,
java.lang.String clientId,
AbstractHtmlInputDate.UserData userData,
boolean disabled,
boolean readonly)
throws java.io.IOException
- Throws:
java.io.IOException
encodeAmpmChoice
protected void encodeAmpmChoice(java.text.DateFormatSymbols symbols,
javax.faces.component.UIComponent uiComponent,
javax.faces.context.ResponseWriter writer,
int calendar_ampm,
int selected)
throws java.io.IOException
- Throws:
java.io.IOException
encodeInputAmpm
protected void encodeInputAmpm(javax.faces.component.UIComponent uiComponent,
javax.faces.context.ResponseWriter writer,
java.lang.String clientId,
AbstractHtmlInputDate.UserData userData,
boolean disabled,
boolean readonly,
java.util.Locale currentLocale)
throws java.io.IOException
- Throws:
java.io.IOException
encodeEmtypAmpmChoice
protected void encodeEmtypAmpmChoice(javax.faces.component.UIComponent component,
javax.faces.context.ResponseWriter writer,
int selectedAmpm)
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
Copyright © 2011 The Apache Software Foundation. All Rights Reserved.