|
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
com.imagine.component.calendar.selection.CalendarSelectionModelSingleIntervalSelection
Defines the selection model for single interval selection.
| Constructor Summary | |
CalendarSelectionModelSingleIntervalSelection()
|
|
| Method Summary | |
void |
addCalendarSelectionListener(CalendarSelectionListener calendarSelectionListener)
Add a calendar component listener. |
java.util.Date |
getAnchorSelectionDate()
Get the anchor selection date. |
java.util.Date |
getLeadSelectionDate()
Get the lead selection date. |
java.lang.String |
getName()
Get the name of the selection model. |
java.util.Date[] |
getSelectedDates()
An array containing the selected dates. |
boolean |
isDateSelected(java.util.Date date)
Returns true if the specified date is selected. |
boolean |
processKeyEvent(CalendarEventKeyAction calendarEventKeyAction)
Process the specified event received from the calendar component. |
boolean |
processMouseEvent(CalendarEventMouseAction calendarEventMouseAction)
Process the specified event received from the calendar component. |
boolean |
processMouseMotionEvent(CalendarEventMouseMotionAction calendarEventMouseMotionAction)
Process the specified event received from the calendar component. |
boolean |
removeCalendarSelectionListener(CalendarSelectionListener calendarSelectionListener)
Remove a calendar component listener. |
void |
setAnchorSelectionDate(java.util.Date date)
Set the anchor selection date. |
void |
setLeadSelectionDate(java.util.Date date)
Set the lead selection date. |
void |
setSelectedDates(java.util.Date[] dates)
Set the selected dates. |
| Methods inherited from class com.imagine.component.calendar.selection.CalendarSelectionModel |
getCalendarComponent, isDateDisabled, isDateSelectable, isEmptySelectionAllowed, setCalendarComponent, setEmptySelectionAllowed, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public CalendarSelectionModelSingleIntervalSelection()
| Method Detail |
public boolean processKeyEvent(CalendarEventKeyAction calendarEventKeyAction)
processKeyEvent in class CalendarSelectionModelcalendarEventKeyAction - The calendar input event.
public boolean processMouseEvent(CalendarEventMouseAction calendarEventMouseAction)
processMouseEvent in class CalendarSelectionModelcalendarEventMouseAction - The calendar input event.
public boolean processMouseMotionEvent(CalendarEventMouseMotionAction calendarEventMouseMotionAction)
processMouseMotionEvent in class CalendarSelectionModelcalendarEventMouseMotionAction - The calendar input event.
public boolean isDateSelected(java.util.Date date)
CalendarSelectionModel
isDateSelected in class CalendarSelectionModeldate - The date to be checked whether it is selected. If the date is null, it tests if the selection is empty.
public void setSelectedDates(java.util.Date[] dates)
CalendarSelectionModel
setSelectedDates in class CalendarSelectionModeldates - An array containing the selected dates.public java.util.Date[] getSelectedDates()
CalendarSelectionModel
getSelectedDates in class CalendarSelectionModelpublic java.util.Date getAnchorSelectionDate()
CalendarSelectionModel
getAnchorSelectionDate in class CalendarSelectionModelpublic void setAnchorSelectionDate(java.util.Date date)
CalendarSelectionModel
setAnchorSelectionDate in class CalendarSelectionModeldate - The anchor selection date.public java.util.Date getLeadSelectionDate()
CalendarSelectionModel
getLeadSelectionDate in class CalendarSelectionModelpublic void setLeadSelectionDate(java.util.Date date)
CalendarSelectionModel
setLeadSelectionDate in class CalendarSelectionModeldate - The lead selection date.public void addCalendarSelectionListener(CalendarSelectionListener calendarSelectionListener)
CalendarSelectionModel
addCalendarSelectionListener in class CalendarSelectionModelcalendarSelectionListener - The calendar component listener to be added.public boolean removeCalendarSelectionListener(CalendarSelectionListener calendarSelectionListener)
CalendarSelectionModel
removeCalendarSelectionListener in class CalendarSelectionModelcalendarSelectionListener - The calendar component listener to be removed.public java.lang.String getName()
CalendarSelectionModel
getName in class CalendarSelectionModel
|
Calendar Component v5.1 www.calendarcomponent.com |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||