|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface VetoPolicy
This interface is used by CalendarPane
and DatePicker
to
provide means to restrict dates in a control.
Method Summary | |
---|---|
boolean |
isRestricted(java.lang.Object source,
java.util.Calendar date)
This method is used to check if a date is restricted. |
boolean |
isRestrictNull(java.lang.Object source)
This method is used to check if no-date ( null date) is
restricted. |
Methods inherited from interface com.michaelbaranov.microba.common.Policy |
---|
addVetoPolicyListener, removeVetoPolicyListener |
Method Detail |
---|
boolean isRestricted(java.lang.Object source, java.util.Calendar date)
source
- a control calling this methoddate
- a date to check. Is never null
true
if given date
is restricted
false
otherwiseboolean isRestrictNull(java.lang.Object source)
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |