Class ShowEventCustomizer
java.lang.Object
com.smartgwt.client.widgets.calendar.ShowEventCustomizer
Called to determine whether a particular event should be visible in the passed view
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
executeDefault
(CalendarEvent event, CalendarView calendarView) Call executeDefault() to run the original method for default behaviorReturns the Calendar being customizedvoid
setCalendar
(Calendar calendar) abstract boolean
shouldShowEvent
(CalendarEvent event, CalendarView calendarView) shouldShowEvent() should be implemented and return true if the passed event should be visible in the passed view Use executeDefault() to run the original method to fall back on default behavior.
-
Constructor Details
-
ShowEventCustomizer
public ShowEventCustomizer()
-
-
Method Details
-
setCalendar
-
getCalendar
Returns the Calendar being customized- Returns:
- Calendar being customized
-
executeDefault
Call executeDefault() to run the original method for default behavior -
shouldShowEvent
shouldShowEvent() should be implemented and return true if the passed event should be visible in the passed view Use executeDefault() to run the original method to fall back on default behavior. To access the Calendar itself, call getCalendar() on the event or the calendarView.- Parameters:
event
- the event in questioncalendarView
- the view in which the event will appear- Returns:
- true if the event should be rendered in the passed view, or false otherwise
-