

Classes | |
| class | NumberChangeListener |
Public Member Functions | |
| TimeChooser () | |
| int | getHour () |
| int | getMinute () |
| int | getSeconds () |
| Date | getTime () |
| void | setEnabled (boolean how) |
| void | setHour (int hour) |
| void | setMinute (int minute) |
| void | setSeconds (int seconds) |
| void | setTime () |
| void | setTime (Date date) |
Static Public Member Functions | |
| static void | main (String[] args) |
Protected Member Functions | |
| void | createComponents () |
| GridBagConstraints | createConstraints (int x, int y, double ratio, int top, int bottom) |
| void | updateDisplay () |
Protected Attributes | |
| JIntegerTextField | hourChooser |
| JIntegerTextField | minuteChooser |
| JIntegerTextField | secondChooser |
Private Attributes | |
| JLabel | separator1 |
| JLabel | separator2 |
| JLabel | hourLabel |
| JLabel | minuteLabel |
| JLabel | secondsLabel |
| Calendar | calendar |
Class specialized for entering the time. All fields are validating and allow only entry of valid time. The interface to application is provided through java.util.Date class. After creation, the component will default to current time. Creation date: (2/4/02 2:23:26 PM)
| com::cosylab::gui::components::r2::TimeChooser::TimeChooser | ( | ) | [inline] |
TimeChooser constructor comment.
References calendar, createComponents(), and updateDisplay().
Referenced by main().
| void com::cosylab::gui::components::r2::TimeChooser::createComponents | ( | ) | [inline, protected] |
References createConstraints(), hourChooser, hourLabel, minuteChooser, minuteLabel, secondChooser, secondsLabel, separator1, separator2, com::cosylab::gui::components::r2::JIntegerTextField::setMaximum(), and com::cosylab::gui::components::r2::JIntegerTextField::setMinimum().
Referenced by TimeChooser().
| GridBagConstraints com::cosylab::gui::components::r2::TimeChooser::createConstraints | ( | int | x, | |
| int | y, | |||
| double | ratio, | |||
| int | top, | |||
| int | bottom | |||
| ) | [inline, protected] |
Referenced by createComponents(), and main().
| int com::cosylab::gui::components::r2::TimeChooser::getHour | ( | ) | [inline] |
Returns the currently selected hour. The value returned is between 0 and 23 inclusively. Creation date: (2/4/02 3:14:36 PM)
References calendar.
Referenced by com::cosylab::gui::components::r2::DateTimeChooser::getDate(), setHour(), and updateDisplay().
| int com::cosylab::gui::components::r2::TimeChooser::getMinute | ( | ) | [inline] |
Returns the currently selected minute. The value is in range 0..59 inclusively. Creation date: (2/4/02 3:15:48 PM)
References calendar.
Referenced by com::cosylab::gui::components::r2::DateTimeChooser::getDate(), setMinute(), and updateDisplay().
| int com::cosylab::gui::components::r2::TimeChooser::getSeconds | ( | ) | [inline] |
Returns the currently selected seconds. The value is in range 0..59 inclusively. Creation date: (2/4/02 3:16:45 PM)
References calendar.
Referenced by com::cosylab::gui::components::r2::DateTimeChooser::getDate(), setSeconds(), and updateDisplay().
| Date com::cosylab::gui::components::r2::TimeChooser::getTime | ( | ) | [inline] |
Returns the currently selected time. Only hour, minute and second portions of the result are defined. Creation date: (2/4/02 3:40:17 PM)
References calendar.
| static void com::cosylab::gui::components::r2::TimeChooser::main | ( | String[] | args | ) | [inline, static] |
Insert the method's description here. Creation date: (2/4/02 2:31:58 PM)
| args | java.lang.String[] |
References createConstraints(), and TimeChooser().
| void com::cosylab::gui::components::r2::TimeChooser::setEnabled | ( | boolean | how | ) | [inline] |
Insert the method's description here. Creation date: (2/5/02 5:41:18 PM)
| how | boolean |
References hourChooser, minuteChooser, and secondChooser.
Referenced by com::cosylab::gui::components::r2::DateTimeChooser::setEnabled().
| void com::cosylab::gui::components::r2::TimeChooser::setHour | ( | int | hour | ) | [inline] |
Sets the hour. The value will be cropped to the 0..23 range. Creation date: (2/4/02 3:13:00 PM)
| hour | int |
References calendar, getHour(), hourChooser, and com::cosylab::gui::components::r2::JIntegerTextField::setIntegerValue().
Referenced by com::cosylab::gui::components::r2::TimeChooser::NumberChangeListener::propertyChange().
| void com::cosylab::gui::components::r2::TimeChooser::setMinute | ( | int | minute | ) | [inline] |
Sets the minutes of the current time. New value will be cropped to the 0..59 range. Creation date: (2/4/02 3:19:22 PM)
| minute | int |
References calendar, getMinute(), minuteChooser, and com::cosylab::gui::components::r2::JIntegerTextField::setIntegerValue().
Referenced by com::cosylab::gui::components::r2::TimeChooser::NumberChangeListener::propertyChange().
| void com::cosylab::gui::components::r2::TimeChooser::setSeconds | ( | int | seconds | ) | [inline] |
Sets the seconds of the current time. New value will be cropped to the 0..59 range. Creation date: (2/4/02 3:21:45 PM)
| seconds | int |
References calendar, getSeconds(), secondChooser, and com::cosylab::gui::components::r2::JIntegerTextField::setIntegerValue().
Referenced by com::cosylab::gui::components::r2::TimeChooser::NumberChangeListener::propertyChange().
| void com::cosylab::gui::components::r2::TimeChooser::setTime | ( | Date | date | ) | [inline] |
Sets the time to display. Only the hour, minute and second portion of the date will be used. Creation date: (2/4/02 3:38:43 PM)
References calendar, and updateDisplay().
| void com::cosylab::gui::components::r2::TimeChooser::setTime | ( | ) | [inline] |
Insert the method's description here. Creation date: (2/4/02 3:38:43 PM)
Referenced by com::cosylab::gui::components::r2::DateTimeChooser::setDate().
| void com::cosylab::gui::components::r2::TimeChooser::updateDisplay | ( | ) | [inline, protected] |
Updates the displayed values after manually setting the time. Creation date: (2/4/02 3:23:33 PM)
References getHour(), getMinute(), getSeconds(), hourChooser, minuteChooser, secondChooser, and com::cosylab::gui::components::r2::JIntegerTextField::setIntegerValue().
Referenced by setTime(), and TimeChooser().
Calendar com::cosylab::gui::components::r2::TimeChooser::calendar [private] |
Referenced by getHour(), getMinute(), getSeconds(), getTime(), setHour(), setMinute(), setSeconds(), setTime(), and TimeChooser().
JLabel com::cosylab::gui::components::r2::TimeChooser::hourLabel [private] |
Referenced by createComponents().
JLabel com::cosylab::gui::components::r2::TimeChooser::minuteLabel [private] |
Referenced by createComponents().
JLabel com::cosylab::gui::components::r2::TimeChooser::secondsLabel [private] |
Referenced by createComponents().
JLabel com::cosylab::gui::components::r2::TimeChooser::separator1 [private] |
Referenced by createComponents().
JLabel com::cosylab::gui::components::r2::TimeChooser::separator2 [private] |
Referenced by createComponents().
1.6.2