Java Calendar Component v3.1
www.java-calendar.com

com.imagine.component.calendar
Interface CalendarDialog


public interface CalendarDialog

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

OPTION_OK

public static final int OPTION_OK
Defines the fact that the user pressed the OK button.

See Also:
Constant Field Values

OPTION_CANCEL

public static final int OPTION_CANCEL
Defines the fact that the user pressed the CANCEL button.

See Also:
Constant Field Values
Method Detail

getDate

public java.util.Date getDate()
Get the date.

Returns:
The date.

setDate

public void setDate(java.util.Date date)
Set the date.

Parameters:
date - The date.

setVisible

public void setVisible(boolean visible)
Set the visible property to the specified value.

Parameters:
visible - Return the visible status.

getCalendarComponent

public CalendarComponent getCalendarComponent()
Get the CalendarComponent object associated.

Returns:
The CalendarComponent object associated.

getDialog

public java.awt.Dialog getDialog()
Get the dialog associated.

Returns:
The dialog associated.

setButtonsNames

public void setButtonsNames(java.lang.String okButtonName,
                            java.lang.String cancelButtonName)
Set the names for the "Ok" and "Cancel" buttons. This function was added to support internationalization.

Parameters:
okButtonName - The name for the ok button.
cancelButtonName - The name for the "Cancel" button.

getChosedOption

public int getChosedOption()
Retuns OPTION_OK if the user pressed the OK button and OPTION_CANCEL if the user pressed the CANCEL button.

Returns:
Retuns OPTION_OK if the user pressed the OK button and OPTION_CANCEL if the user pressed the CANCEL button.

Java Calendar Component v3.1
www.java-calendar.com