com.michaelbaranov.microba.calendar
Interface VetoPolicy
- Policy
public interface VetoPolicy
extends Policy
This interface is used by CalendarPane and DatePicker to
provide means to restrict dates in a control.
boolean | isRestrictNull(Object source)- This method is used to check if no-date (
null date) is
restricted.
|
boolean | isRestricted(Object source, Calendar date)- This method is used to check if a date is restricted.
|
isRestrictNull
public boolean isRestrictNull(Object source)
This method is used to check if no-date (null date) is
restricted. Restricted dates can not be selected by users in a control.
source - a control calling this method
false to allow no-date, true
otherwise
isRestricted
public boolean isRestricted(Object source,
Calendar date) This method is used to check if a date is restricted. Restricted dates
can not be selected by users in a control.
source - a control calling this methoddate - a date to check. Is never null
true if given date is restricted
false otherwise