com.sun.rave.web.ui.renderer
Class CalendarMonthRenderer

java.lang.Object
  extended by javax.faces.render.Renderer
      extended by com.sun.rave.web.ui.renderer.AbstractRenderer
          extended by com.sun.rave.web.ui.renderer.CalendarMonthRenderer

public class CalendarMonthRenderer
extends AbstractRenderer

This class needs to be rewritten. Do not release as API.


Field Summary
 
Fields inherited from class com.sun.rave.web.ui.renderer.AbstractRenderer
BUNDLE, EVENTS_ATTRIBUTES, I18N_ATTRIBUTES
 
Constructor Summary
CalendarMonthRenderer()
           
 
Method Summary
 void decode(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
          Decode any new state of the specified UIComponent from the request contained in the specified FacesContext, and store that state on the UIComponent.
 void encodeBegin(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
          Override default behaviour - do nothing.
 void encodeChildren(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
          Override default behaviour - do nothing.
 void encodeEnd(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
          Render the ending of the specified UIComponent to the output stream or writer associated with the response we are creating.
 boolean getRendersChildren()
          Returns true.
protected  void renderLayoutTable(javax.faces.context.ResponseWriter writer, CalendarMonth calendarMonth)
          Render a layout table.
protected  void renderSpacerImage(javax.faces.context.FacesContext context, CalendarMonth calendarMonth, Theme theme, int height, int width)
          Render a spacer image.
 java.lang.String toString()
          Returns a string representation of the object.
 
Methods inherited from class com.sun.rave.web.ui.renderer.AbstractRenderer
addBooleanAttributes, addCoreAttributes, addIntegerAttributes, addStringAttributes, getApplication, getAsObject, getAsString, getExternalContext, getFacesContext, getSubmittedValue, isDisabled, isPortlet, isReadOnly, renderAttributes, renderEnd, renderMarkup, renderStart, setSubmittedValue
 
Methods inherited from class javax.faces.render.Renderer
convertClientId, getConvertedValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CalendarMonthRenderer

public CalendarMonthRenderer()
Method Detail

renderLayoutTable

protected void renderLayoutTable(javax.faces.context.ResponseWriter writer,
                                 CalendarMonth calendarMonth)
                          throws java.io.IOException

Render a layout table.

Parameters:
writer - The current ResponseWriter
calendarMonth - The CalendarMonth component instance
Throws:
java.io.IOException - if an input/output error occurs

renderSpacerImage

protected void renderSpacerImage(javax.faces.context.FacesContext context,
                                 CalendarMonth calendarMonth,
                                 Theme theme,
                                 int height,
                                 int width)
                          throws java.io.IOException

Render a spacer image.

Parameters:
context - The current FacesContext
calendarMonth - The CalendarMonth component instance
theme - The current Theme
height - The height to use for the spaer image
width - The width to use for the spacer image
Throws:
java.io.IOException - if an input/output error occurs

encodeEnd

public void encodeEnd(javax.faces.context.FacesContext context,
                      javax.faces.component.UIComponent component)
               throws java.io.IOException
Description copied from class: AbstractRenderer

Render the ending of the specified UIComponent to the output stream or writer associated with the response we are creating.

The default implementation calls renderEnd().

Overrides:
encodeEnd in class AbstractRenderer
Parameters:
context - FacesContext for the response we are creating
component - UIComponent to be rendered
Throws:
java.io.IOException - if an input/output error occurs while rendering
java.lang.NullPointerException - if context or component is null

encodeChildren

public void encodeChildren(javax.faces.context.FacesContext context,
                           javax.faces.component.UIComponent component)
                    throws java.io.IOException
Override default behaviour - do nothing.

Overrides:
encodeChildren in class AbstractRenderer
Parameters:
context - FacesContext for the response we are creating
component - UIComponent whose children are to be rendered
Throws:
java.io.IOException - if an input/output error occurs while rendering
java.lang.NullPointerException - if context or component is null

encodeBegin

public void encodeBegin(javax.faces.context.FacesContext context,
                        javax.faces.component.UIComponent component)
                 throws java.io.IOException
Override default behaviour - do nothing.

Overrides:
encodeBegin in class AbstractRenderer
Parameters:
context - FacesContext for the request we are processing
component - UIComponent to be rendered
Throws:
java.io.IOException - if an input/output error occurs while rendering
java.lang.NullPointerException - if context or component is null

toString

public java.lang.String toString()
Returns a string representation of the object.

Overrides:
toString in class java.lang.Object
Returns:
a string representation of the object.

getRendersChildren

public boolean getRendersChildren()
Returns true.

Overrides:
getRendersChildren in class javax.faces.render.Renderer
Returns:
true

decode

public void decode(javax.faces.context.FacesContext context,
                   javax.faces.component.UIComponent component)
Description copied from class: AbstractRenderer

Decode any new state of the specified UIComponent from the request contained in the specified FacesContext, and store that state on the UIComponent.

The default implementation calls setSubmittedValue() on components that implement EditableValueHolder (i.e. input fields)

Overrides:
decode in class AbstractRenderer
Parameters:
context - FacesContext for the current request
component - UIComponent to be decoded