|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ScheduleEntryRenderer
The ScheduleEntryRenderer is responsible for rendering the content and the tooltip of a ScheduleEntry.
Note that the box around the entry is rendered by the ScheduleRenderer, because determining the position and size of the box cannot be done independent of the other entries.
The color of the box can be set using the getEntryColor method. This allows a developer to use different colors for the entries of different users for example.
Method Summary | |
---|---|
String |
getColor(javax.faces.context.FacesContext context,
org.apache.myfaces.custom.schedule.HtmlSchedule schedule,
ScheduleEntry entry,
boolean selected)
Get the color of an entry. |
String |
getEntryClass(org.apache.myfaces.custom.schedule.HtmlSchedule schedule,
ScheduleEntry entry)
Get the class for the entry container. |
void |
renderContent(javax.faces.context.FacesContext context,
javax.faces.context.ResponseWriter writer,
org.apache.myfaces.custom.schedule.HtmlSchedule schedule,
ScheduleDay day,
ScheduleEntry entry,
boolean compact,
boolean selected)
Render the content of an entry. |
void |
renderToolTip(javax.faces.context.FacesContext context,
javax.faces.context.ResponseWriter writer,
org.apache.myfaces.custom.schedule.HtmlSchedule schedule,
ScheduleEntry entry,
boolean selected)
Render the tooltip of a ScheduleEntry. |
Method Detail |
---|
void renderContent(javax.faces.context.FacesContext context, javax.faces.context.ResponseWriter writer, org.apache.myfaces.custom.schedule.HtmlSchedule schedule, ScheduleDay day, ScheduleEntry entry, boolean compact, boolean selected) throws IOException
context
- the FacesContextwriter
- the ResponseWriterschedule
- the Schedule componentday
- the current dayentry
- the entry that should be renderedcompact
- is the schedule rendered in a compact mode?selected
- whether or not the entry is currently selected
IOException
- when the output cannot be writtenString getColor(javax.faces.context.FacesContext context, org.apache.myfaces.custom.schedule.HtmlSchedule schedule, ScheduleEntry entry, boolean selected)
context
- the FacesContextschedule
- the Schedule componententry
- the entryselected
- whether or not the entry is currently selected
void renderToolTip(javax.faces.context.FacesContext context, javax.faces.context.ResponseWriter writer, org.apache.myfaces.custom.schedule.HtmlSchedule schedule, ScheduleEntry entry, boolean selected) throws IOException
context
- the FacesContextwriter
- the ResponseWriterschedule
- the Schedule componententry
- the entryselected
- whether or not the entry is currently selected
IOException
- when the output cannot be writtenString getEntryClass(org.apache.myfaces.custom.schedule.HtmlSchedule schedule, ScheduleEntry entry)
schedule
- the Schedule componententry
- the entry
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |