Class DisableDateCustomizer
java.lang.Object
com.smartgwt.client.widgets.calendar.DisableDateCustomizer
Called to determine whether the passed date should be considered disabled in the passed view
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanexecuteDefault(Date date, CalendarView calendarView) Call executeDefault() to run the original method for default behaviorReturns the Calendar being customizedvoidsetCalendar(Calendar calendar) abstract booleanshouldDisableDate(Date date, CalendarView calendarView) shouldDisableDate() should be implemented and return true if the passed date should be considered disabled in the passed view Use executeDefault() to run the original method to fall back on default behavior.
-
Constructor Details
-
DisableDateCustomizer
public DisableDateCustomizer()
-
-
Method Details
-
setCalendar
-
getCalendar
Returns the Calendar being customized- Returns:
- Calendar being customized
-
executeDefault
Call executeDefault() to run the original method for default behavior -
shouldDisableDate
shouldDisableDate() should be implemented and return true if the passed date should be considered disabled in the passed view Use executeDefault() to run the original method to fall back on default behavior.- Parameters:
date- the date in questioncalendarView- the view in which the date cell exists- Returns:
- true if the date should be considered disabled, or false otherwise
-