public interface HolidayPolicy extends Policy
CalendarPane and DatePicker to
provide means to define hollidays and optionally provide descriptions to
them.| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getHollidayName(java.lang.Object source,
java.util.Calendar date)
This method is used to query a description for a holliday date.
|
boolean |
isHolliday(java.lang.Object source,
java.util.Calendar date)
This method is used to check if a date is a holliday.
|
boolean |
isWeekend(java.lang.Object source,
java.util.Calendar date)
This method is used to check if a date is a weekend date.
|
addVetoPolicyListener, removeVetoPolicyListenerboolean isHolliday(java.lang.Object source,
java.util.Calendar date)
source - a control calling this methoddate - a date to checktrue if given date is a holliday
false otherwiseboolean isWeekend(java.lang.Object source,
java.util.Calendar date)
source - a control calling this methoddate - a date to checktrue if given date is weekend date
false otherwisejava.lang.String getHollidayName(java.lang.Object source,
java.util.Calendar date)
source - a control calling this methoddate - a holliday date to get the description for