org.apache.myfaces.custom.calendar
Class HtmlCalendarRenderer

java.lang.Object
  extended by javax.faces.render.Renderer
      extended by org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlRenderer
          extended by org.apache.myfaces.custom.calendar.HtmlCalendarRenderer

public class HtmlCalendarRenderer
extends org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlRenderer

Version:
$Revision: 507879 $ $Date: 2007-02-15 11:36:45 +0100 (Do, 15 Feb 2007) $
Author:
Martin Marinschek (latest modification by $Author: imario $)

Nested Class Summary
static class HtmlCalendarRenderer.CalendarDateTimeConverter
           
static interface HtmlCalendarRenderer.DateConverter
           
 
Constructor Summary
HtmlCalendarRenderer()
           
 
Method Summary
static void addScriptAndCSSResources(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent component)
          Used by the x:inputDate renderer : HTMLDateRenderer
 void decode(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent component)
           
 void encodeEnd(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent component)
           
 java.lang.Object getConvertedValue(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent, java.lang.Object submittedValue)
           
static java.lang.String getLocalizedLanguageScript(javax.faces.context.FacesContext facesContext, java.text.DateFormatSymbols symbols, int firstDayOfWeek, javax.faces.component.UIComponent uiComponent, java.lang.String popupCalendarVariable)
           
static void getScriptBtn(javax.faces.context.ResponseWriter writer, javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent, java.lang.String dateFormat, java.lang.String popupButtonString, FunctionCallProvider prov)
           
static void main(java.lang.String[] args)
           
static java.lang.String[] mapMonths(java.text.DateFormatSymbols symbols)
           
static java.lang.String[] mapShortMonths(java.text.DateFormatSymbols symbols)
           
 
Methods inherited from class org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlRenderer
getActionUrl, getChildCount, getChildren, getClientId, renderId, shouldRenderId, toUri
 
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
 

Constructor Detail

HtmlCalendarRenderer

public HtmlCalendarRenderer()
Method Detail

encodeEnd

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

addScriptAndCSSResources

public static void addScriptAndCSSResources(javax.faces.context.FacesContext facesContext,
                                            javax.faces.component.UIComponent component)
Used by the x:inputDate renderer : HTMLDateRenderer


getLocalizedLanguageScript

public static java.lang.String getLocalizedLanguageScript(javax.faces.context.FacesContext facesContext,
                                                          java.text.DateFormatSymbols symbols,
                                                          int firstDayOfWeek,
                                                          javax.faces.component.UIComponent uiComponent,
                                                          java.lang.String popupCalendarVariable)

getScriptBtn

public static void getScriptBtn(javax.faces.context.ResponseWriter writer,
                                javax.faces.context.FacesContext facesContext,
                                javax.faces.component.UIComponent uiComponent,
                                java.lang.String dateFormat,
                                java.lang.String popupButtonString,
                                FunctionCallProvider prov)
                         throws java.io.IOException
Throws:
java.io.IOException

mapMonths

public static java.lang.String[] mapMonths(java.text.DateFormatSymbols symbols)

mapShortMonths

public static java.lang.String[] mapShortMonths(java.text.DateFormatSymbols symbols)

decode

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

getConvertedValue

public java.lang.Object getConvertedValue(javax.faces.context.FacesContext facesContext,
                                          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

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2010. All Rights Reserved.