Calendar Component v5.1
www.calendarcomponent.com

com.imagine.component.calendar
Class CalendarDialog

java.lang.Object
  extended bycom.imagine.component.calendar.CalendarDialog

public class CalendarDialog
extends java.lang.Object

This is a calendar dialog.

To use this class you must get an instance of it by calling the method new CalendarDialog(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.
 
Constructor Summary
CalendarDialog(java.awt.Window parent)
          Constructor for the CalendarDialog object.
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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
Constructor Detail

CalendarDialog

public CalendarDialog(java.awt.Window parent)
Constructor for the CalendarDialog object.

Parameters:
parent -
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.

Calendar Component v5.1
www.calendarcomponent.com