Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

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

Collaboration diagram for com::cosylab::gui::components::r2::TimeChooser:

Collaboration graph
[legend]
List of all members.

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

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.


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]
 

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

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

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

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

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[]

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

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

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

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

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)

void com::cosylab::gui::components::r2::TimeChooser::setTime  )  [inline]
 

Insert the method's description here. Creation date: (2/4/02 3:38:43 PM)

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)


Member Data Documentation

Calendar com::cosylab::gui::components::r2::TimeChooser::calendar [private]
 

JIntegerTextField com::cosylab::gui::components::r2::TimeChooser::hourChooser [protected]
 

JLabel com::cosylab::gui::components::r2::TimeChooser::hourLabel [private]
 

JIntegerTextField com::cosylab::gui::components::r2::TimeChooser::minuteChooser [protected]
 

JLabel com::cosylab::gui::components::r2::TimeChooser::minuteLabel [private]
 

JIntegerTextField com::cosylab::gui::components::r2::TimeChooser::secondChooser [protected]
 

JLabel com::cosylab::gui::components::r2::TimeChooser::secondsLabel [private]
 

JLabel com::cosylab::gui::components::r2::TimeChooser::separator1 [private]
 

JLabel com::cosylab::gui::components::r2::TimeChooser::separator2 [private]
 


The documentation for this class was generated from the following file:
Generated on Thu Apr 30 03:12:30 2009 for ACS Java API by doxygen 1.3.8