Java Calendar Component v3.1
www.java-calendar.com

com.imagine.component.calendar.renderers
Class CalendarRendererProvider

java.lang.Object
  extended bycom.imagine.component.calendar.renderers.CalendarRendererProvider
Direct Known Subclasses:
CalendarRendererProviderDefault, CalendarRendererProviderHoveredColumn, CalendarRendererProviderHoveredIntersection, CalendarRendererProviderHoveredLine, CalendarRendererProviderOval, CalendarRendererProviderRoundRect

public abstract class CalendarRendererProvider
extends java.lang.Object

Define a renderer provider. A renderer provider choses the renderers which will be actually used to paint the table cells, the header cells, the week cells and the calendar background.


Field Summary
protected  CalendarComponent calendarComponent
           
 
Constructor Summary
CalendarRendererProvider()
           
 
Method Summary
abstract  CalendarBackgroundRenderer getBackgroundRenderer(CalendarBackgroundInfo calendarBackgroundInfo)
          Get the background renderer which will be used to paint the calendar background.
 CalendarComponent getCalendarComponent()
          Get the calendar component associated.
abstract  CalendarHeaderCellRenderer getHeaderCellRenderer(CalendarHeaderCellInfo calendarHeaderCellInfo)
          Get the header cell renderer which will be used to paint the header cell.
abstract  java.lang.String getName()
          Get the name of the provider.
abstract  CalendarStatusPanelRenderer getStatusPanelRenderer(CalendarStatusPanelInfo calendarStatusPanelInfo)
          Get the renderer for the status panel.
abstract  CalendarTableCellRenderer getTableCellRenderer(CalendarTableCellInfo calendarTableCellInfo)
          Get the table cell renderer which will be used to paint the table cell.
abstract  CalendarWeekCellRenderer getWeekCellRenderer(CalendarWeekCellInfo calendarWeekCellInfo)
          Get the week cell renderer which will be used to paint the week cell.
abstract  boolean hasBackgroundRenderer()
          Returns true if the specified calendar component associated has a background renderer.
 void setCalendarComponent(CalendarComponent calendarComponent)
          Set the calendar component associated.
 java.lang.String toString()
          A string representation of this provider.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

calendarComponent

protected CalendarComponent calendarComponent
Constructor Detail

CalendarRendererProvider

public CalendarRendererProvider()
Method Detail

setCalendarComponent

public final void setCalendarComponent(CalendarComponent calendarComponent)
Set the calendar component associated.

Parameters:
calendarComponent -

getCalendarComponent

public final CalendarComponent getCalendarComponent()
Get the calendar component associated.

Returns:
The calendar component associated.

getTableCellRenderer

public abstract CalendarTableCellRenderer getTableCellRenderer(CalendarTableCellInfo calendarTableCellInfo)
Get the table cell renderer which will be used to paint the table cell.

Parameters:
calendarTableCellInfo - The calendar table cell info which contains informations about the current table cell.
Returns:
The cell renderer which will be used to paint the table cell.

getHeaderCellRenderer

public abstract CalendarHeaderCellRenderer getHeaderCellRenderer(CalendarHeaderCellInfo calendarHeaderCellInfo)
Get the header cell renderer which will be used to paint the header cell.

Parameters:
calendarHeaderCellInfo - The calendar header cell info which contains informations about the current header cell.
Returns:
The cell renderer which will be used to paint the header cell.

getWeekCellRenderer

public abstract CalendarWeekCellRenderer getWeekCellRenderer(CalendarWeekCellInfo calendarWeekCellInfo)
Get the week cell renderer which will be used to paint the week cell.

Parameters:
calendarWeekCellInfo - The calendar week cell info which contains informations about the current week cell.
Returns:
The cell renderer which will be used to paint the week cell.

getBackgroundRenderer

public abstract CalendarBackgroundRenderer getBackgroundRenderer(CalendarBackgroundInfo calendarBackgroundInfo)
Get the background renderer which will be used to paint the calendar background.

Parameters:
calendarBackgroundInfo - The calendar background info which contains informations about the calendar background.
Returns:
The renderer which will be used to paint the background.

hasBackgroundRenderer

public abstract boolean hasBackgroundRenderer()
Returns true if the specified calendar component associated has a background renderer.

Returns:
true if the specified calendar component associated has a background renderer.

getStatusPanelRenderer

public abstract CalendarStatusPanelRenderer getStatusPanelRenderer(CalendarStatusPanelInfo calendarStatusPanelInfo)
Get the renderer for the status panel. The status panel contains the "Today" and "None" buttons. The "None" button is displayed only if empty selection is allowed.

Parameters:
calendarStatusPanelInfo - Contains informations about the status panel.
Returns:
The renderer which will be used to paint the status panel.

getName

public abstract java.lang.String getName()
Get the name of the provider.

Returns:
The name of the provider.

toString

public java.lang.String toString()
A string representation of this provider.


Java Calendar Component v3.1
www.java-calendar.com