com::cosylab::gui::components::r2::TimeChooser Class Reference

Inheritance diagram for com::cosylab::gui::components::r2::TimeChooser:
Inheritance graph
[legend]
Collaboration diagram for com::cosylab::gui::components::r2::TimeChooser:
Collaboration graph
[legend]

List of all members.

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

Detailed Description

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)

Author:
:

Constructor & Destructor Documentation

com::cosylab::gui::components::r2::TimeChooser::TimeChooser (  )  [inline]

TimeChooser constructor comment.

References calendar, createComponents(), and updateDisplay().

Referenced by main().


Member Function Documentation

void com::cosylab::gui::components::r2::TimeChooser::createComponents (  )  [inline, protected]
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)

Returns:
int

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)

Returns:
int

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)

Returns:
int

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)

Returns:
java.util.Date

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)

Parameters:
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)

Parameters:
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)

Parameters:
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)

Parameters:
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)

Parameters:
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().


Member Data Documentation

Referenced by createComponents().

Referenced by createComponents().

Referenced by createComponents().

Referenced by createComponents().

Referenced by createComponents().


The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2