|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.faces.render.Renderer
org.apache.myfaces.custom.schedule.renderer.AbstractScheduleRenderer
public abstract class AbstractScheduleRenderer
Abstract superclass for all renderer of the UISchedule component
Field Summary | |
---|---|
protected static ScheduleEntryComparator |
comparator
|
static java.lang.String |
DEFAULT_THEME
|
static java.lang.String |
EVOLUTION_THEME
|
protected static java.lang.String |
LAST_CLICKED_DATE
|
protected static java.lang.String |
LAST_CLICKED_Y
|
static java.lang.String |
OUTLOOK_THEME
|
Constructor Summary | |
---|---|
AbstractScheduleRenderer()
|
Method Summary | |
---|---|
void |
decode(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
|
protected abstract java.util.Date |
determineLastClickedDate(HtmlSchedule schedule,
java.lang.String dateId,
java.lang.String yPos)
Determine the last clicked date |
void |
encodeBegin(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
|
protected java.lang.String |
getDateString(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
java.util.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(javax.faces.component.UIComponent component)
The user of the Schedule component can customize the look and feel by specifying a custom implementation of the ScheduleEntryRenderer. |
protected java.lang.String |
getHeaderDateFormat(javax.faces.component.UIComponent component)
The date format that is used in the schedule header |
protected int |
getRowHeight(java.util.Map attributes)
|
protected abstract java.lang.String |
getRowHeightProperty()
|
protected java.lang.String |
getStyleClass(javax.faces.component.UIComponent component,
java.lang.String className)
Allow the developer to specify custom CSS classnames for the schedule component. |
protected java.lang.String |
getTheme(javax.faces.component.UIComponent component)
The theme used when rendering the schedule |
protected boolean |
showTooltip(javax.faces.component.UIComponent component)
Should the tooltip be made visible? |
Methods inherited from class javax.faces.render.Renderer |
---|
convertClientId, encodeChildren, encodeEnd, getConvertedValue, getRendersChildren |
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 java.lang.String LAST_CLICKED_DATE
protected static final java.lang.String LAST_CLICKED_Y
public static final java.lang.String DEFAULT_THEME
public static final java.lang.String OUTLOOK_THEME
public static final java.lang.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 java.io.IOException
encodeBegin
in class javax.faces.render.Renderer
java.io.IOException
Renderer.encodeBegin(javax.faces.context.FacesContext,
javax.faces.component.UIComponent)
protected java.lang.String getDateString(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, java.util.Date date)
Get the String representation of a date, taking into account the specified date format or the current Locale.
context
- the FacesContextcomponent
- the componentdate
- the date
protected java.lang.String getTheme(javax.faces.component.UIComponent component)
The theme used when rendering the schedule
component
- the component
protected java.lang.String getStyleClass(javax.faces.component.UIComponent component, java.lang.String className)
Allow the developer to specify custom CSS classnames for the schedule component.
component
- the componentclassName
- the default CSS classname
protected java.lang.String getHeaderDateFormat(javax.faces.component.UIComponent component)
The date format that is used in the schedule header
component
- the component
protected boolean showTooltip(javax.faces.component.UIComponent component)
Should the tooltip be made visible?
component
- the component
protected ScheduleEntryRenderer getEntryRenderer(javax.faces.component.UIComponent component)
component
- the Schedule component
protected abstract int getDefaultRowHeight()
protected abstract java.lang.String getRowHeightProperty()
protected int getRowHeight(java.util.Map attributes)
attributes
- The attributes
protected abstract java.util.Date determineLastClickedDate(HtmlSchedule schedule, java.lang.String dateId, java.lang.String yPos)
schedule
- the schedule componentdateId
- the string identifying the dateyPos
- the y coordinate of the mouse
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |