|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.nachocalendar.model.DefaultDateSelectionModel
public class DefaultDateSelectionModel
Default implementation for DateSelectionModel
interface.
Field Summary |
---|
Fields inherited from interface net.sf.nachocalendar.model.DateSelectionModel |
---|
MULTIPLE_INTERVAL_SELECTION, SINGLE_INTERVAL_SELECTION, SINGLE_SELECTION |
Constructor Summary | |
---|---|
DefaultDateSelectionModel()
Default constructor. |
Method Summary | |
---|---|
void |
addDateSelectionListener(DateSelectionListener listener)
Registers DateSelectionListener to receive events. |
void |
addSelectionInterval(java.util.Date from,
java.util.Date to)
Adds the interval to the selection. |
void |
clearSelection()
Clears the current selection. |
java.util.Date |
getLeadSelectionDate()
Returns the lead selection Date. |
java.lang.Object |
getSelectedDate()
Returns the selected Date. |
java.lang.Object[] |
getSelectedDates()
Sets the selected Dates. |
int |
getSelectionMode()
Returns the selection mode. |
boolean |
getValueIsAdjusting()
Returns true if the current changes to the value property are part of a series of changes. |
boolean |
isSelectedDate(java.util.Date date)
Checks if provided date is selected. |
boolean |
isSelectionEmpty()
Checks if selection is empty. |
void |
removeDateSelectionListener(DateSelectionListener listener)
Removes DateSelectionListener from the list of listeners. |
void |
removeSelectionInterval(java.util.Date from,
java.util.Date to)
Removes the interval from selection. |
void |
setLeadSelectionDate(java.util.Date date)
Sets the lead selection Date. |
void |
setSelectedDate(java.lang.Object date)
Sets the selected Date. |
void |
setSelectedDates(java.lang.Object[] dates)
Sets the selected Dates. |
void |
setSelectionMode(int selectionMode)
Sets the selection mode. |
void |
setValueIsAdjusting(boolean b)
This attribute indicates that any upcoming changes to the value of the model should be considered a single event. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultDateSelectionModel()
Method Detail |
---|
public void addSelectionInterval(java.util.Date from, java.util.Date to)
DateSelectionModel
addSelectionInterval
in interface DateSelectionModel
from
- starting dateto
- end dateDateSelectionModel.addSelectionInterval(java.util.Date,
java.util.Date)
public void clearSelection()
DateSelectionModel
clearSelection
in interface DateSelectionModel
DateSelectionModel.clearSelection()
public boolean isSelectedDate(java.util.Date date)
DateSelectionModel
isSelectedDate
in interface DateSelectionModel
date
- Date to check.
DateSelectionModel.isSelectedDate(java.util.Date)
public boolean isSelectionEmpty()
DateSelectionModel
isSelectionEmpty
in interface DateSelectionModel
DateSelectionModel.isSelectionEmpty()
public void removeSelectionInterval(java.util.Date from, java.util.Date to)
DateSelectionModel
removeSelectionInterval
in interface DateSelectionModel
from
- starting dateto
- end dateDateSelectionModel.removeSelectionInterval(java.util.Date,
java.util.Date)
public void addDateSelectionListener(DateSelectionListener listener)
addDateSelectionListener
in interface DateSelectionModel
listener
- The listener to register.public void removeDateSelectionListener(DateSelectionListener listener)
removeDateSelectionListener
in interface DateSelectionModel
listener
- The listener to remove.public int getSelectionMode()
DateSelectionModel
getSelectionMode
in interface DateSelectionModel
public void setSelectionMode(int selectionMode)
DateSelectionModel
setSelectionMode
in interface DateSelectionModel
selectionMode
- The selectionMode to set.public java.util.Date getLeadSelectionDate()
DateSelectionModel
getLeadSelectionDate
in interface DateSelectionModel
DateSelectionModel.getLeadSelectionDate()
public void setLeadSelectionDate(java.util.Date date)
DateSelectionModel
setLeadSelectionDate
in interface DateSelectionModel
date
- lead selection Date.DateSelectionModel.setLeadSelectionDate(java.util.Date)
public java.lang.Object getSelectedDate()
DateSelectionModel
getSelectedDate
in interface DateSelectionModel
DateSelectionModel.getSelectedDate()
public java.lang.Object[] getSelectedDates()
DateSelectionModel
getSelectedDates
in interface DateSelectionModel
DateSelectionModel.getSelectedDates()
public void setSelectedDate(java.lang.Object date)
DateSelectionModel
setSelectedDate
in interface DateSelectionModel
date
- selected Date.DateSelectionModel.setSelectedDate(java.lang.Object)
public void setSelectedDates(java.lang.Object[] dates)
DateSelectionModel
setSelectedDates
in interface DateSelectionModel
dates
- selected Dates.DateSelectionModel.setSelectedDates(java.lang.Object[])
public void setValueIsAdjusting(boolean b)
DateSelectionModel
setValueIsAdjusting
in interface DateSelectionModel
public boolean getValueIsAdjusting()
DateSelectionModel
getValueIsAdjusting
in interface DateSelectionModel
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |