com.bradrydzewski.gwt.calendar.theme.google.client
Class GoogleMonthViewStyleManager

java.lang.Object
  extended by com.bradrydzewski.gwt.calendar.client.monthview.MonthViewStyleManager
      extended by com.bradrydzewski.gwt.calendar.theme.google.client.GoogleMonthViewStyleManager

public class GoogleMonthViewStyleManager
extends MonthViewStyleManager

Google theme style manager for the month view.

Author:
Brad Rydzewski, Carlos D. Morales

Field Summary
 
Fields inherited from class com.bradrydzewski.gwt.calendar.client.monthview.MonthViewStyleManager
APPOINTMENT_STYLE, APPOINTMENT_STYLE_MULTIDAY, APPOINTMENT_STYLE_SELECTED, BACKGROUND_COLOR_STYLE_ATTRIBUTE, BORDER_COLOR_STYLE_ATTRIBUTE, COLOR_STYLE_ATTRIBUTE
 
Constructor Summary
GoogleMonthViewStyleManager()
           
 
Method Summary
protected  ThemeAppointmentStyle getDefaultViewAppointmentStyleForTheme()
          Returns the default appointment style corresponding to the currently used theme.
protected  ThemeAppointmentStyle getViewAppointmentStyleForTheme(Appointment appointment)
          Returns the appointment style appropriate to the passed appointment based on a specific theme.
 
Methods inherited from class com.bradrydzewski.gwt.calendar.client.monthview.MonthViewStyleManager
applyStyle, doApplyStyleInternal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GoogleMonthViewStyleManager

public GoogleMonthViewStyleManager()
Method Detail

getDefaultViewAppointmentStyleForTheme

protected ThemeAppointmentStyle getDefaultViewAppointmentStyleForTheme()
Description copied from class: MonthViewStyleManager
Returns the default appointment style corresponding to the currently used theme. Subclasses should provide a style to be used if no appropriate style can be identified (MonthViewStyleManager.getViewAppointmentStyleForTheme(com.bradrydzewski.gwt.calendar.client.Appointment) returns null).

Specified by:
getDefaultViewAppointmentStyleForTheme in class MonthViewStyleManager
Returns:
The style to use with a theme if no specific style can be identified with MonthViewStyleManager.getViewAppointmentStyleForTheme(com.bradrydzewski.gwt.calendar.client.Appointment)

getViewAppointmentStyleForTheme

protected ThemeAppointmentStyle getViewAppointmentStyleForTheme(Appointment appointment)
Description copied from class: MonthViewStyleManager
Returns the appointment style appropriate to the passed appointment based on a specific theme.

Specified by:
getViewAppointmentStyleForTheme in class MonthViewStyleManager
Parameters:
appointment - An appointment to be displayed in the month view, should include a style to be used
Returns:
The style to use with a theme, can be null if a default should be used
See Also:
MonthViewStyleManager.getDefaultViewAppointmentStyleForTheme()


Copyright © 2012. All Rights Reserved.