|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bradrydzewski.gwt.calendar.client.monthview.MonthViewStyleManager
public abstract class MonthViewStyleManager
Applies styles in a month view based on the currently selected theme. This class
provides a template method to consistently style the appointments in a month view. Subclasses
provide appropriate appointment styles based on a specific theme using methods
getViewAppointmentStyleForTheme(com.bradrydzewski.gwt.calendar.client.Appointment) and
getDefaultViewAppointmentStyleForTheme().
GoogleMonthViewStyleManager,
ICalMonthViewStyleManager| Field Summary | |
|---|---|
protected static String |
APPOINTMENT_STYLE
|
protected static String |
APPOINTMENT_STYLE_MULTIDAY
|
protected static String |
APPOINTMENT_STYLE_SELECTED
|
protected static String |
BACKGROUND_COLOR_STYLE_ATTRIBUTE
|
protected static String |
BORDER_COLOR_STYLE_ATTRIBUTE
|
protected static String |
COLOR_STYLE_ATTRIBUTE
|
| Constructor Summary | |
|---|---|
MonthViewStyleManager()
|
|
| Method Summary | |
|---|---|
void |
applyStyle(AppointmentWidget widget,
boolean selected)
Applies a style in the currently selected theme using the runtime-provided theme styles defined by getViewAppointmentStyleForTheme(com.bradrydzewski.gwt.calendar.client.Appointment)
and getDefaultViewAppointmentStyleForTheme(). |
protected void |
doApplyStyleInternal(AppointmentWidget widget,
boolean selected)
Template method to consistently apply the styles to an appointment in the month view. |
protected abstract ThemeAppointmentStyle |
getDefaultViewAppointmentStyleForTheme()
Returns the default appointment style corresponding to the currently used theme. |
protected abstract ThemeAppointmentStyle |
getViewAppointmentStyleForTheme(Appointment appointment)
Returns the appointment style appropriate to the passed appointment based on a specific theme. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final String APPOINTMENT_STYLE
protected static final String APPOINTMENT_STYLE_SELECTED
protected static final String APPOINTMENT_STYLE_MULTIDAY
protected static final String BACKGROUND_COLOR_STYLE_ATTRIBUTE
protected static final String BORDER_COLOR_STYLE_ATTRIBUTE
protected static final String COLOR_STYLE_ATTRIBUTE
| Constructor Detail |
|---|
public MonthViewStyleManager()
| Method Detail |
|---|
protected abstract ThemeAppointmentStyle getViewAppointmentStyleForTheme(Appointment appointment)
appointment - An appointment to be displayed in the month view, should include a style to be used
null if a default should be usedgetDefaultViewAppointmentStyleForTheme()protected abstract ThemeAppointmentStyle getDefaultViewAppointmentStyleForTheme()
getViewAppointmentStyleForTheme(com.bradrydzewski.gwt.calendar.client.Appointment) returns null).
getViewAppointmentStyleForTheme(com.bradrydzewski.gwt.calendar.client.Appointment)
public void applyStyle(AppointmentWidget widget,
boolean selected)
getViewAppointmentStyleForTheme(com.bradrydzewski.gwt.calendar.client.Appointment)
and getDefaultViewAppointmentStyleForTheme().
widget - The widget to styleselected - Indicates if the appointment is the currently selected in the view
protected void doApplyStyleInternal(AppointmentWidget widget,
boolean selected)
widget - The widget to styleselected - Indicates if the appointment is the currently selected in the view
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||