org.apache.myfaces.custom.schedule
Class ScheduleCompactWeekRenderer

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.ScheduleCompactWeekRenderer
All Implemented Interfaces:
java.io.Serializable

public class ScheduleCompactWeekRenderer
extends AbstractCompactScheduleRenderer
implements java.io.Serializable

Renderer for the week view of the UISchedule 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
ScheduleCompactWeekRenderer()
           
 
Method Summary
 void encodeBegin(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
           
protected  int getDefaultRowHeight()
           
protected  int getRowHeight(UIScheduleBase schedule)
           
 
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

ScheduleCompactWeekRenderer

public ScheduleCompactWeekRenderer()
Method Detail

encodeBegin

public void encodeBegin(javax.faces.context.FacesContext context,
                        javax.faces.component.UIComponent component)
                 throws java.io.IOException
Overrides:
encodeBegin in class AbstractScheduleRenderer
Throws:
java.io.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()

getRowHeight

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


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