Public Member Functions | |
DateChooser () | |
Date | getDate () |
int | getDay () |
int | getMonth () |
int | getNumberOfYears () |
int | getStartingYear () |
int | getYear () |
void | setDate (Date date) |
void | setDay (int index) |
void | setEnabled (boolean how) |
void | setNumberOfYears (int newNumberOfYears) |
void | setStartingYear (int newStartingYear) |
void | setYear (int index) |
Static Public Member Functions | |
void | main (String[] args) |
Protected Member Functions | |
void | createComponents () |
GridBagConstraints | createConstraints (int x, int y, double ratio, int top, int bottom) |
void | displayDays () |
void | setMonth (int index) |
Protected Attributes | |
int | startingYear = 2000 |
JComboBox | daySelector = null |
JComboBox | monthSelector = null |
JComboBox | yearSelector = null |
Private Member Functions | |
void | updateComponents () |
Private Attributes | |
int | numberOfYears = 20 |
JLabel | dayLabel = null |
JLabel | monthLabel = null |
JLabel | yearLabel = null |
Calendar | calendar = null |
|
Creates a new DateChooser. |
|
Creates and layouts the components that represent this panel. Creation date: (2/4/02 9:56:24 AM) |
|
Internal helper routine returns GridBagConstraints object. Creation date: (2/4/02 9:57:12 AM)
|
|
Internal helper routine updates the correct number of days for the selected month. Creation date: (2/4/02 10:37:59 AM) |
|
Returns the currently selected date as java.util.Date. Creation date: (2/4/02 12:35:43 PM)
|
|
Returns number of the selected day in current month, starting with 1. Creation date: (2/4/02 10:58:33 AM)
|
|
Returns the index of the currently selected month starting with 1. Creation date: (2/4/02 10:56:46 AM)
|
|
Returns the number of year to display in the year selector. Creation date: (2/10/2002 18:12:00)
|
|
Returns the starting year to display in the year selector. No year lower than this can be selected by the user or set using setDate method. Creation date: (2/10/2002 18:12:00)
|
|
Returns the currently selected year. Creation date: (2/4/02 10:57:25 AM)
|
|
|
|
Sets the date to display. Creation date: (2/4/02 12:36:48 PM)
|
|
Sets the day to the specified index. To ensure compatibility with java.util.Calendar class, first day of month is specified as 1. Creation date: (2/4/02 10:51:15 AM)
|
|
Sets the enabled state of this component. If the component is disabled, all the combo boxes are also disabled. Creation date: (2/5/02 5:23:59 PM)
|
|
Sets the currently selected month. January has the index of 0. Creation date: (2/4/02 10:36:44 AM) |
|
Sets the number of years to display in the year selector. User can only select the years shown in the year selector. Creation date: (2/10/2002 18:19:55)
|
|
Sets the starting year to be displayed in the year selector. Only the years between startingYear and startingYear+numberOfYears inclusively can be selected by the user or by calling the setDate method. Creation date: (2/10/2002 18:19:55)
|
|
Sets the currently selected year. Years are specified absolutely, although only years between startingYear and numberOfYears will be displayed. If the year is not within this range, the closest value will be set. Creation date: (2/4/02 11:22:21 AM)
|
|
Updates the display after setting the value properties. Creation date: (2/4/02 10:09:05 AM) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|