addDateSelectionListener
public void addDateSelectionListener(DateSelectionListener listener)
Registers DateSelectionListener to receive events.
listener - The listener to register.
addSelectionInterval
public void addSelectionInterval(Date from,
Date to)Adds the interval to the selection.
from - starting dateto - end date
clearSelection
public void clearSelection()
Clears the current selection.
getLeadSelectionDate
public Date getLeadSelectionDate()
Returns the lead selection Date.
getSelectedDate
public Object getSelectedDate()
Returns the selected Date.
getSelectedDates
public Object[] getSelectedDates()
Sets the selected Dates.
getSelectionMode
public int getSelectionMode()
Returns the selection mode.
getValueIsAdjusting
public boolean getValueIsAdjusting()
Returns true if the current changes
to the value property are part of a
series of changes.
isSelectedDate
public boolean isSelectedDate(Date date)
Checks if provided date is selected.
isSelectionEmpty
public boolean isSelectionEmpty()
Checks if selection is empty.
- true if selection is empty.
removeDateSelectionListener
public void removeDateSelectionListener(DateSelectionListener listener)
Removes DateSelectionListener from the list of listeners.
listener - The listener to remove.
removeSelectionInterval
public void removeSelectionInterval(Date from,
Date to)Removes the interval from selection.
from - starting dateto - end date
setLeadSelectionDate
public void setLeadSelectionDate(Date date)
Sets the lead selection Date.
date - lead selection Date.
setSelectedDate
public void setSelectedDate(Object date)
Sets the selected Date.
setSelectedDates
public void setSelectedDates(Object[] dates)
Sets the selected Dates.
setSelectionMode
public void setSelectionMode(int selectionMode)
Sets the selection mode.
selectionMode - the new selection mode.
setValueIsAdjusting
public void setValueIsAdjusting(boolean b)
This attribute indicates that any
upcoming changes to the value of the
model should be considered a single event.