Interface VetoPolicy
- All Superinterfaces:
Policy
This interface is used by
CalendarPane and DatePicker to
provide means to restrict dates in a control.- Author:
- Michael Baranov
-
Method Summary
Modifier and TypeMethodDescriptionbooleanisRestricted(Object source, Calendar date) This method is used to check if a date is restricted.booleanisRestrictNull(Object source) This method is used to check if no-date (nulldate) is restricted.Methods inherited from interface com.michaelbaranov.microba.common.Policy
addVetoPolicyListener, removeVetoPolicyListener
-
Method Details
-
isRestricted
This method is used to check if a date is restricted. Restricted dates can not be selected by users in a control.- Parameters:
source- a control calling this methoddate- a date to check. Is nevernull- Returns:
trueif givendateis restrictedfalseotherwise
-
isRestrictNull
This method is used to check if no-date (nulldate) is restricted. Restricted dates can not be selected by users in a control.- Parameters:
source- a control calling this method- Returns:
falseto allow no-date,trueotherwise
-