EarthWeb
Developer.com
Site
windows 2000
visual c++
java
visual basic
javascripts
recommend it
 
Book
thinking in java
 
Interact
forum
guest book
jobs
jokes
what's new

share code
 
Resource
add resource
modify resource
new resource
 

[Internet Jobs]
-----
Java by E-mail:

Get the weekly e-mail highlights on Java!
-----
-

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

Constructor Summary
DateRangeHelper(DateChooser startChooser, DateChooser endChooser)
          Construct a new DateRangeHelper for the specified start and end date choosers.
 
Method Summary
 void actionPerformed(ActionEvent evt)
          Handle events.
 Calendar getEndDate()
          Get the currently selected end date.
 Calendar getStartDate()
          Get the currently selected start date.
 void setEndDate(Calendar date)
          Set the end date.
 void setMaximumDate(Calendar date)
          Set the maximum selectable date for this date range.
 void setMinimumDate(Calendar date)
          Set the minimum selectable date for this date range.
 void setStartDate(Calendar date)
          Set the start date.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.
Method Detail

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


internet.commerce



Acceptable Use Policy

JupiterOnlineMedia

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info


Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Web Hosting | Newsletters | Tech Jobs | Shopping | E-mail Offers