|
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 component you have to insert into your application.
To use this component you must get an instance of it by calling the method calendarFactory.createCalendarComponent(java.util.Date).
In order to customize the look you must call the method getCalendarSkin() which will give you an instance of a CalendarSkin 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 |
CHANGE_CURRENT_DATE_WHEN_YEAR_OR_MONTH_CHANGES
When this property is set to true the current selected date will be automatically changed when the year or month is changed through the visual controls. |
static CalendarProperty |
FIRST_DAY_OF_WEEK
Defines the first day of week property. |
static CalendarProperty |
LOCALE
Defines the locale property. |
static CalendarProperty |
MAX_ADVANCE_OVER_NON_SELECTABLE_DATES
Specifies the maximum number of non selectable calendar cells to be skipped searching for a selectable cell in the current direction. |
static CalendarProperty |
MAX_MONTHS_NAMES_LENGTH
Defines the max months names length property. |
static CalendarProperty |
MAX_WEEK_DAYS_NAMES_LENGTH
Defines the max week days names length property. |
static CalendarProperty |
SHOW_EXTRA_MONTH_DAYS
Defines the visible status property for the extra month days. |
static CalendarProperty |
SHOW_GRID
Defines the grid visible status property. |
static CalendarProperty |
SHOW_HOVER
Defines the hover effect status property. |
static CalendarProperty |
SHOW_STATUS_PANEL
True if the panel containing the Today and None labels is visible. |
static CalendarProperty |
SHOW_WEEK
Defines the week numbers visible status property. |
static CalendarProperty |
STATUS_PANEL_NONE_LABEL
The label for None item on status panel. |
static CalendarProperty |
STATUS_PANEL_TODAY_LABEL
The label for Today item on status panel. |
Method Summary | |
void |
addCalendarComponentListener(CalendarComponentListener calendarComponentListener)
Add a calendar component listener. |
void |
addDateListener(DateListener dateListener)
Add a date listener. |
java.lang.Boolean |
getBooleanCalendarProperty(CalendarProperty calendarProperty)
Get the value of the specified calendar property as a Boolean object. |
java.lang.Object |
getCalendarProperty(CalendarProperty calendarProperty)
Get the value of the specified calendar property. |
CalendarRendererProvider |
getCalendarRendererProvider()
Get the calendar renderer provider object used to render the calendar. |
CalendarSelectionModel |
getCalendarSelectionModel()
Get the dates selection model. |
CalendarSkin |
getCalendarSkin()
Get the CalendarSkin object associated. |
javax.swing.JComponent |
getComponent()
Get the component associated. |
java.util.Date |
getDate()
Get the date. |
java.lang.Integer |
getIntegerCalendarProperty(CalendarProperty calendarProperty)
Get the value of the specified calendar property as an Integer object. |
java.util.Locale |
getLocaleCalendarProperty(CalendarProperty calendarProperty)
Get the value of the specified calendar property as a Locale object. |
CalendarProperty[] |
getSupportedCalendarProperties()
Get the list of properties suported. |
void |
processCalendarEvent(CalendarEvent calendarEvent)
Send an event to the calendar component. |
boolean |
removeCalendarComponentListener(CalendarComponentListener calendarComponentListener)
Remove a calendar component listener. |
boolean |
removeDateListener(DateListener dateListener)
Remove a date listener. |
void |
setCalendarProperty(CalendarProperty calendarProperty,
java.lang.Object value)
Set the specified calendar property to the specified value. |
void |
setCalendarRendererProvider(CalendarRendererProvider calendarTableCellRendererProvider)
Set the calendar renderer provider. |
void |
setCalendarSelectionModel(CalendarSelectionModel calendarSelectionModel)
Set the dates selection model. |
void |
setDate(java.util.Date date)
Set the date. |
Field Detail |
public static final CalendarProperty FIRST_DAY_OF_WEEK
public static final CalendarProperty SHOW_GRID
public static final CalendarProperty SHOW_WEEK
public static final CalendarProperty SHOW_HOVER
public static final CalendarProperty SHOW_STATUS_PANEL
public static final CalendarProperty STATUS_PANEL_TODAY_LABEL
public static final CalendarProperty STATUS_PANEL_NONE_LABEL
public static final CalendarProperty SHOW_EXTRA_MONTH_DAYS
public static final CalendarProperty MAX_WEEK_DAYS_NAMES_LENGTH
public static final CalendarProperty MAX_MONTHS_NAMES_LENGTH
public static final CalendarProperty LOCALE
public static final CalendarProperty MAX_ADVANCE_OVER_NON_SELECTABLE_DATES
public static final CalendarProperty CHANGE_CURRENT_DATE_WHEN_YEAR_OR_MONTH_CHANGES
Method Detail |
public java.lang.Object getCalendarProperty(CalendarProperty calendarProperty)
calendarProperty
- The property for which the value must be returned.
public java.util.Locale getLocaleCalendarProperty(CalendarProperty calendarProperty)
calendarProperty
- The property for which the value must be returned.
public java.lang.Integer getIntegerCalendarProperty(CalendarProperty calendarProperty)
calendarProperty
- The property for which the value must be returned.
public java.lang.Boolean getBooleanCalendarProperty(CalendarProperty calendarProperty)
calendarProperty
- The property for which the value must be returned.
public void setCalendarProperty(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 CalendarProperty[] getSupportedCalendarProperties()
public java.util.Date getDate()
public void setDate(java.util.Date date)
date
- The date.public void addDateListener(DateListener dateListener)
dateListener
- The date listener.public boolean removeDateListener(DateListener dateListener)
dateListener
- The date listener to be removed.public void addCalendarComponentListener(CalendarComponentListener calendarComponentListener)
calendarComponentListener
- The calendar component listener to be added.public boolean removeCalendarComponentListener(CalendarComponentListener calendarComponentListener)
calendarComponentListener
- The calendar component listener to be removed.public void processCalendarEvent(CalendarEvent calendarEvent)
calendarEvent
- The event sent for processing to the calendar component.public void setCalendarRendererProvider(CalendarRendererProvider calendarTableCellRendererProvider)
calendarTableCellRendererProvider
- The calendar renderer provider to be set.public CalendarRendererProvider getCalendarRendererProvider()
public void setCalendarSelectionModel(CalendarSelectionModel calendarSelectionModel)
calendarSelectionModel
- The dates selection model to be set.public CalendarSelectionModel getCalendarSelectionModel()
public CalendarSkin getCalendarSkin()
public javax.swing.JComponent getComponent()
|
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 |