|
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 the calendar combobox you have to insert into your application.
To use this component you must get an instance of it by calling the method calendarFactory.createCalendarComboBox(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 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 CalendarProperty |
CLOSE_WHEN_DATE_SELECTED
If true the combobox will be hidden when selecting a date with the mouse or with a key. |
Method Summary | |
java.lang.Boolean |
getBooleanCalendarComboBoxProperty(CalendarProperty calendarProperty)
Get the value of the specified calendar property as a Boolean object. |
java.lang.Object |
getCalendarComboBoxProperty(CalendarProperty calendarProperty)
Get the value of the specified calendar property. |
CalendarComponent |
getCalendarComponent()
Get the calendarComponent associated. |
javax.swing.JComponent |
getComboBoxComponent()
Get the comboBox component which can be added in the interface. |
java.util.Date |
getDate()
Get the date. |
java.lang.String |
getDateFormat()
Get the date format. |
void |
setCalendarComboBoxProperty(CalendarProperty calendarProperty,
java.lang.Object value)
Set the specified CalendarComboBox property to the specified value. |
void |
setDate(java.util.Date date)
Set the date. |
void |
setDateFormat(java.lang.String dateFormat)
Set the date format. |
Field Detail |
public static final CalendarProperty CLOSE_WHEN_DATE_SELECTED
Method Detail |
public java.lang.Object getCalendarComboBoxProperty(CalendarProperty calendarProperty)
calendarProperty
- The property for which the value must be returned.
public java.lang.Boolean getBooleanCalendarComboBoxProperty(CalendarProperty calendarProperty)
calendarProperty
- The property for which the value must be returned.
public void setCalendarComboBoxProperty(CalendarProperty calendarProperty, java.lang.Object value) throws CalendarPropertyException
calendarProperty
- The property to be set.value
- The value to set for the specified property.
CalendarPropertyException
public javax.swing.JComponent getComboBoxComponent()
public CalendarComponent getCalendarComponent()
public void setDateFormat(java.lang.String dateFormat)
dateFormat
- the date format to be set.public java.lang.String getDateFormat()
public java.util.Date getDate()
public void setDate(java.util.Date date)
date
- The date.
|
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 |