|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.klg.jclass.util.calendar.BoundsValidator
Class that given a minimum and a maximum date, checks that the date is between the two bounds.
Field Summary | |
protected Calendar |
maximumDate
The Calendar object containing the maximum date. |
protected Calendar |
minimumDate
The Calendar object containing the minimum date. |
protected Component |
parent
The parent component requiring the bounds check. |
Constructor Summary | |
BoundsValidator()
Default constructor. |
|
BoundsValidator(Calendar minDate,
Calendar maxDate)
Constructor specifying the minimum and maximum dates. |
|
BoundsValidator(Component c)
Constructor specifying parent component. |
|
BoundsValidator(Component c,
Calendar minDate,
Calendar maxDate)
Constructor specifying the parent component and the minimum and maximum dates. |
Method Summary | |
protected boolean |
checkDates(Calendar min,
Calendar max)
|
Calendar |
getMaximumDate()
Returns the maximum roll date. |
Calendar |
getMinimumDate()
Returns the minimum roll date. |
Component |
getParent()
Return the parent component. |
boolean |
isValid(Calendar c)
Given the minimum and the maximum date, check if the supplied date falls between the dates. |
void |
setMaximumDate(Calendar maxDate)
Sets the maximum roll date. |
void |
setMinimumDate(Calendar minDate)
Sets the minimum date. |
void |
setParent(Component c)
Set the parent component. |
void |
valueChanged(com.klg.jclass.util.value.JCValueEvent e)
Nothing done here. |
void |
valueChanging(com.klg.jclass.util.value.JCValueEvent e)
Don't allow the change if it is before the minimum or after the maximum. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Calendar minimumDate
protected Calendar maximumDate
protected Component parent
Constructor Detail |
public BoundsValidator()
public BoundsValidator(Component c)
c
- The parent component.public BoundsValidator(Calendar minDate, Calendar maxDate)
minDate
- The minimum date.maxDate
- The maximum date.public BoundsValidator(Component c, Calendar minDate, Calendar maxDate)
c
- The parent component.minDate
- The minimum date.maxDate
- The maximum date.Method Detail |
public Component getParent()
public void setParent(Component c)
c
- The new parent component.protected boolean checkDates(Calendar min, Calendar max)
public Calendar getMinimumDate()
Calendar
,
setMinimumDate(java.util.Calendar)
,
getMaximumDate()
,
setMaximumDate(java.util.Calendar)
public void setMinimumDate(Calendar minDate)
minDate
- the new minimum dateCalendar
,
getMinimumDate()
,
getMaximumDate()
,
setMaximumDate(java.util.Calendar)
public Calendar getMaximumDate()
Calendar
,
setMinimumDate(java.util.Calendar)
,
getMinimumDate()
,
setMaximumDate(java.util.Calendar)
public void setMaximumDate(Calendar maxDate)
maxDate
- the new maximum dateCalendar
,
setMinimumDate(java.util.Calendar)
,
getMinimumDate()
,
getMaximumDate()
public boolean isValid(Calendar c)
c
- The Calendar object containing the date to check
public void valueChanging(com.klg.jclass.util.value.JCValueEvent e)
valueChanging
in interface JCValueListener
e
- the event generated by the value changepublic void valueChanged(com.klg.jclass.util.value.JCValueEvent e)
valueChanged
in interface JCValueListener
e
- the event generated by the value being changed
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |