|
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
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(java.util.Date date,
KeyEventType keyEventType,
java.awt.event.KeyEvent keyEvent)
Process the specified key event received from the calendar component. |
abstract boolean |
processMouseEvent(java.util.Date date,
MouseEventType mouseEventType,
java.awt.event.MouseEvent mouseEvent)
Process the specified mouse event received from the calendar component. |
abstract boolean |
processMouseMotionEvent(java.util.Date date,
MouseMotionEventType mouseEventType,
java.awt.event.MouseEvent mouseEvent)
Process the specified mouse motion 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(java.util.Date date, KeyEventType keyEventType, java.awt.event.KeyEvent keyEvent)
date
- The current selected date.keyEventType
- The key event type.keyEvent
- The key event to process.
public abstract boolean processMouseEvent(java.util.Date date, MouseEventType mouseEventType, java.awt.event.MouseEvent mouseEvent)
date
- The current selected date.mouseEventType
- The mouse event type.mouseEvent
- The mouse event to process.
public abstract boolean processMouseMotionEvent(java.util.Date date, MouseMotionEventType mouseEventType, java.awt.event.MouseEvent mouseEvent)
date
- The current selected date.mouseEvent
- The mouse event to process.
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()
|
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 |