|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.faces.render.Renderer org.apache.myfaces.custom.schedule.AbstractScheduleRenderer
public abstract class AbstractScheduleRenderer
Abstract superclass for all renderer of the UISchedule component
Field Summary | |
---|---|
protected static ScheduleEntryComparator |
comparator
|
static String |
DEFAULT_THEME
|
static String |
EVOLUTION_THEME
|
protected static String |
LAST_CLICKED_DATE
|
protected static String |
LAST_CLICKED_Y
|
static String |
OUTLOOK_THEME
|
Constructor Summary | |
---|---|
AbstractScheduleRenderer()
|
Method Summary | |
---|---|
void |
decode(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
|
protected abstract Date |
determineLastClickedDate(org.apache.myfaces.custom.schedule.HtmlSchedule schedule,
String dateId,
String yPos)
Determine the last clicked date |
void |
encodeBegin(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
|
protected Calendar |
getCalendarInstance(org.apache.myfaces.custom.schedule.UIScheduleBase schedule,
Date date)
|
protected static DateFormat |
getDateFormat(javax.faces.context.FacesContext context,
org.apache.myfaces.custom.schedule.UIScheduleBase schedule,
String pattern)
|
protected static DateFormat |
getDateFormat(javax.faces.context.FacesContext context,
org.apache.myfaces.custom.schedule.UIScheduleBase schedule,
String pattern,
Date date)
|
protected String |
getDateString(javax.faces.context.FacesContext context,
org.apache.myfaces.custom.schedule.UIScheduleBase schedule,
Date date)
Get the String representation of a date, taking into account the specified date format or the current Locale. |
protected abstract int |
getDefaultRowHeight()
|
protected ScheduleEntryRenderer |
getEntryRenderer(org.apache.myfaces.custom.schedule.HtmlSchedule schedule)
The user of the Schedule component can customize the look and feel by specifying a custom implementation of the ScheduleEntryRenderer. |
boolean |
getRendersChildren()
|
protected abstract int |
getRowHeight(org.apache.myfaces.custom.schedule.UIScheduleBase schedule)
|
protected String |
getStyleClass(javax.faces.component.UIComponent component,
String className)
Allow the developer to specify custom CSS classnames for the schedule component. |
Methods inherited from class javax.faces.render.Renderer |
---|
convertClientId, encodeChildren, encodeEnd, getConvertedValue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final ScheduleEntryComparator comparator
protected static final String LAST_CLICKED_DATE
protected static final String LAST_CLICKED_Y
public static final String DEFAULT_THEME
public static final String OUTLOOK_THEME
public static final String EVOLUTION_THEME
Constructor Detail |
---|
public AbstractScheduleRenderer()
Method Detail |
---|
public void decode(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
decode
in class javax.faces.render.Renderer
Renderer.decode(javax.faces.context.FacesContext,
javax.faces.component.UIComponent)
public void encodeBegin(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component) throws IOException
encodeBegin
in class javax.faces.render.Renderer
IOException
Renderer.encodeBegin(javax.faces.context.FacesContext,
javax.faces.component.UIComponent)
protected String getDateString(javax.faces.context.FacesContext context, org.apache.myfaces.custom.schedule.UIScheduleBase schedule, Date date)
Get the String representation of a date, taking into account the specified date format or the current Locale.
context
- the FacesContextschedule
- the componentdate
- the date
protected static DateFormat getDateFormat(javax.faces.context.FacesContext context, org.apache.myfaces.custom.schedule.UIScheduleBase schedule, String pattern)
protected static DateFormat getDateFormat(javax.faces.context.FacesContext context, org.apache.myfaces.custom.schedule.UIScheduleBase schedule, String pattern, Date date)
protected String getStyleClass(javax.faces.component.UIComponent component, String className)
Allow the developer to specify custom CSS classnames for the schedule component.
component
- the componentclassName
- the default CSS classname
protected ScheduleEntryRenderer getEntryRenderer(org.apache.myfaces.custom.schedule.HtmlSchedule schedule)
component
- the Schedule component
protected abstract int getDefaultRowHeight()
protected abstract int getRowHeight(org.apache.myfaces.custom.schedule.UIScheduleBase schedule)
schedule
- The schedule
protected abstract Date determineLastClickedDate(org.apache.myfaces.custom.schedule.HtmlSchedule schedule, String dateId, String yPos)
schedule
- the schedule componentdateId
- the string identifying the dateyPos
- the y coordinate of the mouse
public boolean getRendersChildren()
getRendersChildren
in class javax.faces.render.Renderer
Renderer.getRendersChildren()
protected Calendar getCalendarInstance(org.apache.myfaces.custom.schedule.UIScheduleBase schedule, Date date)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |