|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjade.gui.TimeChooser
public class TimeChooser
The TimeChooser class can be used to let the user
define a certain point in time by means of a dialog window.
| Field Summary | |
|---|---|
static int |
ABSOLUTE
|
static int |
CANCEL
|
static int |
OK
|
static int |
RELATIVE
|
| Constructor Summary | |
|---|---|
TimeChooser()
Default constructor. |
|
TimeChooser(java.util.Date d)
Create a time chooser set at the given time instant. |
|
| Method Summary | |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
|
java.util.Date |
getDate()
Retrieve the time instant this time chooser is set to. |
void |
setDate(java.util.Date d)
Set the time instant for thistime chooser. |
int |
showEditTimeDlg(javax.swing.JFrame parent)
Allow the user to manipulate a time instant through this dialog. |
void |
showViewTimeDlg(javax.swing.JFrame parent)
Allow the user to view a time instant through a read-only version of this dialog. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int ABSOLUTE
public static final int RELATIVE
public static final int OK
public static final int CANCEL
| Constructor Detail |
|---|
public TimeChooser()
public TimeChooser(java.util.Date d)
d - The initial time instant for this time chooser.| Method Detail |
|---|
public int showEditTimeDlg(javax.swing.JFrame parent)
parent - The parent component for this dialog.public void showViewTimeDlg(javax.swing.JFrame parent)
parent - The parent component of this dialog.public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListenerpublic java.util.Date getDate()
public void setDate(java.util.Date d)
d - The time instant for this chooser to point to.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||