org.apache.myfaces.custom.schedule
Class ScheduleCompactMonthRenderer

java.lang.Object
  extended by javax.faces.render.Renderer
      extended by org.apache.myfaces.custom.schedule.AbstractScheduleRenderer
          extended by org.apache.myfaces.custom.schedule.AbstractCompactScheduleRenderer
              extended by org.apache.myfaces.custom.schedule.ScheduleCompactMonthRenderer
All Implemented Interfaces:
Serializable

public class ScheduleCompactMonthRenderer
extends AbstractCompactScheduleRenderer
implements Serializable

Renderer for the month view of the Schedule component

Since:
1.1.7
Version:
$Revision: 382051 $
Author:
Jurgen Lust (latest modification by $Author: schof $), Bruno Aranda (adaptation of Jurgen's code to myfaces)
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.myfaces.custom.schedule.AbstractScheduleRenderer
comparator, DEFAULT_THEME, EVOLUTION_THEME, LAST_CLICKED_DATE, LAST_CLICKED_Y, OUTLOOK_THEME
 
Constructor Summary
ScheduleCompactMonthRenderer()
           
 
Method Summary
 void encodeBegin(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
           
protected  int getDefaultRowHeight()
           
protected  int getRowHeight(org.apache.myfaces.custom.schedule.UIScheduleBase schedule)
           
protected  void writeDayCell(javax.faces.context.FacesContext context, javax.faces.context.ResponseWriter writer, org.apache.myfaces.custom.schedule.HtmlSchedule schedule, ScheduleDay day, int dayOfWeek, int dayOfMonth, boolean isWeekend, boolean isCurrentMonth, int rowspan)
           
 
Methods inherited from class org.apache.myfaces.custom.schedule.AbstractCompactScheduleRenderer
determineLastClickedDate, encodeChildren, encodeEnd, isSelected, writeDayCell, writeEntries
 
Methods inherited from class org.apache.myfaces.custom.schedule.AbstractScheduleRenderer
decode, getCalendarInstance, getDateFormat, getDateFormat, getDateString, getEntryRenderer, getRendersChildren, getStyleClass
 
Methods inherited from class javax.faces.render.Renderer
convertClientId, getConvertedValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScheduleCompactMonthRenderer

public ScheduleCompactMonthRenderer()
Method Detail

encodeBegin

public void encodeBegin(javax.faces.context.FacesContext context,
                        javax.faces.component.UIComponent component)
                 throws IOException
Overrides:
encodeBegin in class AbstractScheduleRenderer
Throws:
IOException
See Also:
Renderer.encodeBegin(javax.faces.context.FacesContext, javax.faces.component.UIComponent)

getDefaultRowHeight

protected int getDefaultRowHeight()
Specified by:
getDefaultRowHeight in class AbstractCompactScheduleRenderer
Returns:
The default height, in pixels, of one row in the schedule grid
See Also:
AbstractCompactScheduleRenderer.getDefaultRowHeight()

writeDayCell

protected void writeDayCell(javax.faces.context.FacesContext context,
                            javax.faces.context.ResponseWriter writer,
                            org.apache.myfaces.custom.schedule.HtmlSchedule schedule,
                            ScheduleDay day,
                            int dayOfWeek,
                            int dayOfMonth,
                            boolean isWeekend,
                            boolean isCurrentMonth,
                            int rowspan)
                     throws IOException
Throws:
IOException

getRowHeight

protected int getRowHeight(org.apache.myfaces.custom.schedule.UIScheduleBase schedule)
Specified by:
getRowHeight in class AbstractScheduleRenderer
Parameters:
schedule - The schedule
Returns:
The row height, in pixels


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.