|
Calendar Component v5.1 www.calendarcomponent.com |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.imagine.component.calendar.selection.CalendarSelectionModel
Defines the calendar selection model.
| Constructor Summary | |
CalendarSelectionModel()
|
|
| Method Summary | |
abstract void |
addCalendarSelectionListener(CalendarSelectionListener calendarSelectionListener)
Add a calendar component listener. |
abstract java.util.Date |
getAnchorSelectionDate()
Get the anchor selection date. |
CalendarComponent |
getCalendarComponent()
Get the calendar component associated. |
abstract java.util.Date |
getLeadSelectionDate()
Get the lead selection date. |
abstract java.lang.String |
getName()
Get the name of the selection model. |
abstract java.util.Date[] |
getSelectedDates()
An array containing the selected dates. |
boolean |
isDateDisabled(java.util.Date date)
Returns true if the specified date is disabled. |
boolean |
isDateSelectable(java.util.Date date)
Returns true if the specified date can be selectable. |
abstract boolean |
isDateSelected(java.util.Date date)
Returns true if the specified date is selected. |
boolean |
isEmptySelectionAllowed()
If true the empty selection is allowed. |
abstract boolean |
processKeyEvent(CalendarEventKeyAction calendarEventKeyAction)
Process the specified event received from the calendar component. |
abstract boolean |
processMouseEvent(CalendarEventMouseAction calendarEventMouseAction)
Process the specified event received from the calendar component. |
abstract boolean |
processMouseMotionEvent(CalendarEventMouseMotionAction calendarEventMouseMotionAction)
Process the specified event received from the calendar component. |
abstract boolean |
removeCalendarSelectionListener(CalendarSelectionListener calendarSelectionListener)
Remove a calendar component listener. |
abstract void |
setAnchorSelectionDate(java.util.Date date)
Set the anchor selection date. |
void |
setCalendarComponent(CalendarComponent calendarComponent)
Set the calendar component associated. |
void |
setEmptySelectionAllowed(boolean emptySelectionAllowed)
Sets whether the empty selection is allowed. |
abstract void |
setLeadSelectionDate(java.util.Date date)
Set the lead selection date. |
abstract void |
setSelectedDates(java.util.Date[] dates)
Set the selected dates. |
java.lang.String |
toString()
A string representation of this selection model. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public CalendarSelectionModel()
| Method Detail |
public final void setCalendarComponent(CalendarComponent calendarComponent)
calendarComponent - public final CalendarComponent getCalendarComponent()
public abstract boolean processKeyEvent(CalendarEventKeyAction calendarEventKeyAction)
calendarEventKeyAction - The calendar input event.
public abstract boolean processMouseEvent(CalendarEventMouseAction calendarEventMouseAction)
calendarEventMouseAction - The calendar input event.
public abstract boolean processMouseMotionEvent(CalendarEventMouseMotionAction calendarEventMouseMotionAction)
calendarEventMouseMotionAction - The calendar input event.
public abstract boolean isDateSelected(java.util.Date date)
date - The date to be checked whether it is selected. If the date is null, it tests if the selection is empty.
public boolean isDateSelectable(java.util.Date date)
date - The date to be checked whether it is selectable.
public boolean isDateDisabled(java.util.Date date)
date - The date to be checked whether it is disabled.
public boolean isEmptySelectionAllowed()
public void setEmptySelectionAllowed(boolean emptySelectionAllowed)
throws EmptySelectionNotAllowedException
emptySelectionAllowed - true if empty selection is allowed. False otherwise.
EmptySelectionNotAllowedException - Thrown when there is no date selected and it is tried to be not allowed empty selection.public abstract void setSelectedDates(java.util.Date[] dates)
dates - An array containing the selected dates.public abstract java.util.Date[] getSelectedDates()
public abstract java.lang.String getName()
public abstract java.util.Date getAnchorSelectionDate()
public abstract void setAnchorSelectionDate(java.util.Date date)
date - The anchor selection date.public abstract java.util.Date getLeadSelectionDate()
public abstract void setLeadSelectionDate(java.util.Date date)
date - The lead selection date.public abstract void addCalendarSelectionListener(CalendarSelectionListener calendarSelectionListener)
calendarSelectionListener - The calendar component listener to be added.public abstract boolean removeCalendarSelectionListener(CalendarSelectionListener calendarSelectionListener)
calendarSelectionListener - The calendar component listener to be removed.public java.lang.String toString()
|
Calendar Component v5.1 www.calendarcomponent.com |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||