| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.myfaces.custom.schedule.DefaultScheduleEntryRenderer
public class DefaultScheduleEntryRenderer
The default implementation of the ScheduleEntryRenderer
| Constructor Summary | |
|---|---|
| DefaultScheduleEntryRenderer() | |
| Method Summary | |
|---|---|
|  String | getColor(javax.faces.context.FacesContext context,
         HtmlSchedule schedule,
         ScheduleEntry entry,
         boolean selected)Get the color of an entry. | 
|  String | getEntryClass(HtmlSchedule schedule,
              ScheduleEntry entry)Get the class for the entry container. | 
| protected  String | getStyleClass(javax.faces.component.UIComponent component,
              String className)Allow the developer to specify custom CSS classnames for the schedule component. | 
| protected  void | renderCompactContent(javax.faces.context.FacesContext context,
                     javax.faces.context.ResponseWriter writer,
                     HtmlSchedule schedule,
                     ScheduleDay day,
                     ScheduleEntry entry,
                     boolean selected) | 
|  void | renderContent(javax.faces.context.FacesContext context,
              javax.faces.context.ResponseWriter writer,
              HtmlSchedule schedule,
              ScheduleDay day,
              ScheduleEntry entry,
              boolean compact,
              boolean selected)Render the content of an entry. | 
| protected  void | renderDetailedContentText(javax.faces.context.FacesContext context,
                          javax.faces.context.ResponseWriter writer,
                          HtmlSchedule schedule,
                          ScheduleDay day,
                          ScheduleEntry entry,
                          boolean selected) | 
|  void | renderToolTip(javax.faces.context.FacesContext context,
              javax.faces.context.ResponseWriter writer,
              HtmlSchedule schedule,
              ScheduleEntry entry,
              boolean selected)Render the tooltip of a ScheduleEntry. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public DefaultScheduleEntryRenderer()
| Method Detail | 
|---|
public void renderContent(javax.faces.context.FacesContext context,
                          javax.faces.context.ResponseWriter writer,
                          HtmlSchedule schedule,
                          ScheduleDay day,
                          ScheduleEntry entry,
                          boolean compact,
                          boolean selected)
                   throws IOException
ScheduleEntryRenderer
renderContent in interface ScheduleEntryRenderercontext - 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 writtenScheduleEntryRenderer.renderContent(javax.faces.context.FacesContext, javax.faces.context.ResponseWriter, org.apache.myfaces.custom.schedule.HtmlSchedule, org.apache.myfaces.custom.schedule.model.ScheduleDay, org.apache.myfaces.custom.schedule.model.ScheduleEntry, boolean, boolean)
protected void renderCompactContent(javax.faces.context.FacesContext context,
                                    javax.faces.context.ResponseWriter writer,
                                    HtmlSchedule schedule,
                                    ScheduleDay day,
                                    ScheduleEntry entry,
                                    boolean selected)
                             throws IOException
IOException
protected void renderDetailedContentText(javax.faces.context.FacesContext context,
                                         javax.faces.context.ResponseWriter writer,
                                         HtmlSchedule schedule,
                                         ScheduleDay day,
                                         ScheduleEntry entry,
                                         boolean selected)
                                  throws IOException
IOException
public String getColor(javax.faces.context.FacesContext context,
                       HtmlSchedule schedule,
                       ScheduleEntry entry,
                       boolean selected)
ScheduleEntryRenderer
getColor in interface ScheduleEntryRenderercontext - the FacesContextschedule - the Schedule componententry - the entryselected - whether or not the entry is currently selected
ScheduleEntryRenderer.getColor(javax.faces.context.FacesContext, org.apache.myfaces.custom.schedule.HtmlSchedule, org.apache.myfaces.custom.schedule.model.ScheduleEntry, boolean)
public void renderToolTip(javax.faces.context.FacesContext context,
                          javax.faces.context.ResponseWriter writer,
                          HtmlSchedule schedule,
                          ScheduleEntry entry,
                          boolean selected)
                   throws IOException
ScheduleEntryRenderer
renderToolTip in interface ScheduleEntryRenderercontext - the FacesContextwriter - the ResponseWriterschedule - the Schedule componententry - the entryselected - whether or not the entry is currently selected
IOException - when the output cannot be writtenScheduleEntryRenderer.renderToolTip(javax.faces.context.FacesContext, javax.faces.context.ResponseWriter, org.apache.myfaces.custom.schedule.HtmlSchedule, org.apache.myfaces.custom.schedule.model.ScheduleEntry, boolean)
public String getEntryClass(HtmlSchedule schedule,
                            ScheduleEntry entry)
ScheduleEntryRenderer
getEntryClass in interface ScheduleEntryRendererschedule - the Schedule componententry - the entryScheduleEntryRenderer.getEntryClass(org.apache.myfaces.custom.schedule.HtmlSchedule, org.apache.myfaces.custom.schedule.model.ScheduleEntry)
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
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||