|
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 |
java.lang.Objectcom.imagine.component.calendar.selection.CalendarSelectionModel
com.imagine.component.calendar.selection.CalendarSelectionModelSingleSelection
Defines the selection model for single selection.
Constructor Summary | |
CalendarSelectionModelSingleSelection()
|
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(java.util.Date date,
KeyEventType keyEventType,
java.awt.event.KeyEvent keyEvent)
Process the specified key event received from the calendar component. |
boolean |
processMouseEvent(java.util.Date date,
MouseEventType mouseEventType,
java.awt.event.MouseEvent mouseEvent)
Process the specified mouse event received from the calendar component. |
boolean |
processMouseMotionEvent(java.util.Date date,
MouseMotionEventType mouseMotionEventType,
java.awt.event.MouseEvent mouseEvent)
Process the specified mouse motion 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 CalendarSelectionModelSingleSelection()
Method Detail |
public boolean processKeyEvent(java.util.Date date, KeyEventType keyEventType, java.awt.event.KeyEvent keyEvent)
CalendarSelectionModel
processKeyEvent
in class CalendarSelectionModel
date
- The current selected date.keyEventType
- The key event type.keyEvent
- The key event to process.
public boolean processMouseEvent(java.util.Date date, MouseEventType mouseEventType, java.awt.event.MouseEvent mouseEvent)
CalendarSelectionModel
processMouseEvent
in class CalendarSelectionModel
date
- The current selected date.mouseEventType
- The mouse event type.mouseEvent
- The mouse event to process.
public boolean processMouseMotionEvent(java.util.Date date, MouseMotionEventType mouseMotionEventType, java.awt.event.MouseEvent mouseEvent)
CalendarSelectionModel
processMouseMotionEvent
in class CalendarSelectionModel
date
- The current selected date.mouseEvent
- The mouse event to process.
public boolean isDateSelected(java.util.Date date)
CalendarSelectionModel
isDateSelected
in class CalendarSelectionModel
date
- 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 CalendarSelectionModel
dates
- An array containing the selected dates.public java.util.Date[] getSelectedDates()
CalendarSelectionModel
getSelectedDates
in class CalendarSelectionModel
public java.util.Date getAnchorSelectionDate()
CalendarSelectionModel
getAnchorSelectionDate
in class CalendarSelectionModel
public void setAnchorSelectionDate(java.util.Date date)
CalendarSelectionModel
setAnchorSelectionDate
in class CalendarSelectionModel
date
- The anchor selection date.public java.util.Date getLeadSelectionDate()
CalendarSelectionModel
getLeadSelectionDate
in class CalendarSelectionModel
public void setLeadSelectionDate(java.util.Date date)
CalendarSelectionModel
setLeadSelectionDate
in class CalendarSelectionModel
date
- The lead selection date.public void addCalendarSelectionListener(CalendarSelectionListener calendarSelectionListener)
CalendarSelectionModel
addCalendarSelectionListener
in class CalendarSelectionModel
calendarSelectionListener
- The calendar component listener to be added.public boolean removeCalendarSelectionListener(CalendarSelectionListener calendarSelectionListener)
CalendarSelectionModel
removeCalendarSelectionListener
in class CalendarSelectionModel
calendarSelectionListener
- The calendar component listener to be removed.public java.lang.String getName()
CalendarSelectionModel
getName
in class CalendarSelectionModel
|
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 |