|
Java Calendar Component v3.1 www.java-calendar.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This is a calendar dialog.
To use this class you must get an instance of it by calling the method calendarFactory.createCalendarDialog(java.awt.Window, java.util.Date).
In order to customize the look you must call the method getCalendarComponent() which will give you an instance of a CalendarComponent object associated and work with it.
To set the date you must call the method setDate() and to get the date you must call the method getDate().
See also howto.html file for further informations.
Field Summary | |
static int |
OPTION_CANCEL
Defines the fact that the user pressed the CANCEL button. |
static int |
OPTION_OK
Defines the fact that the user pressed the OK button. |
Method Summary | |
CalendarComponent |
getCalendarComponent()
Get the CalendarComponent object associated. |
int |
getChosedOption()
Retuns OPTION_OK if the user pressed the OK button and OPTION_CANCEL if the user pressed the CANCEL button. |
java.util.Date |
getDate()
Get the date. |
java.awt.Dialog |
getDialog()
Get the dialog associated. |
void |
setButtonsNames(java.lang.String okButtonName,
java.lang.String cancelButtonName)
Set the names for the "Ok" and "Cancel" buttons. |
void |
setDate(java.util.Date date)
Set the date. |
void |
setVisible(boolean visible)
Set the visible property to the specified value. |
Field Detail |
public static final int OPTION_OK
public static final int OPTION_CANCEL
Method Detail |
public java.util.Date getDate()
public void setDate(java.util.Date date)
date
- The date.public void setVisible(boolean visible)
visible
- Return the visible status.public CalendarComponent getCalendarComponent()
public java.awt.Dialog getDialog()
public void setButtonsNames(java.lang.String okButtonName, java.lang.String cancelButtonName)
okButtonName
- The name for the ok button.cancelButtonName
- The name for the "Cancel" button.public int getChosedOption()
|
Java Calendar Component v3.1 www.java-calendar.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |