kiwi.ui
Class DateRangeHelper
java.lang.Object
|
+--kiwi.ui.DateRangeHelper
public class DateRangeHelper extends Object implements ActionListener
A helper class for coordinating two DateChoosers for the
purpose of entering a date range. DateRangeHelper constrains
two DateChoosers in such a way that only a valid date range
may be selected using the two choosers. To this end, an end date must be
entered that is on or after the start date. The date range selection can
be further constrained by specifing a minimum and maximum date; in this
case input is limited so that the selected date range will fall within
the constrained range.
DateRangeHelper in action.
Version: 1.0 (07/99)
Author: Mark Lindner, PING Software Group
Methods inherited from class java.lang.Object
clone ,
equals ,
finalize ,
getClass ,
hashCode ,
notify ,
notifyAll ,
toString ,
wait ,
wait ,
wait
DateRangeHelper
public DateRangeHelper (DateChooser startChooser,
DateChooser endChooser)
Construct a new DateRangeHelper for the specified start and
end date choosers.
Parameters: startChooser - The DateChooser for selecting a start
date.endChooser - The DateChooser for selecting an end
date.
setMinimumDate
public void setMinimumDate (Calendar date)
Set the minimum selectable date for this date range.
Parameters: date - The minimum date.
setMaximumDate
public void setMaximumDate (Calendar date)
Set the maximum selectable date for this date range.
Parameters: date - The maximum date.
getStartDate
public Calendar getStartDate ()
Get the currently selected start date.
Returns: The start date.
getEndDate
public Calendar getEndDate ()
Get the currently selected end date.
Returns: The end date.
setStartDate
public void setStartDate (Calendar date)
Set the start date.
Parameters: date - The new end date.
setEndDate
public void setEndDate (Calendar date)
Set the end date.
Parameters: date - The new end date.
actionPerformed
public void actionPerformed (ActionEvent evt)
Handle events. This method is public as an implementation side-effect.
Specified by: actionPerformed in interface ActionListener