|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jidesoft.combobox.DefaultDateSelectionModel
public class DefaultDateSelectionModel
Default data model for DateSelectionModel.
DateSelectionModel
Field Summary |
---|
Fields inherited from interface com.jidesoft.combobox.DateSelectionModel |
---|
MULTIPLE_INTERVAL_SELECTION, SINGLE_INTERVAL_SELECTION, SINGLE_SELECTION |
Constructor Summary | |
---|---|
DefaultDateSelectionModel()
|
|
DefaultDateSelectionModel(int mode)
|
Method Summary | |
---|---|
void |
addDateSelectionListener(DateSelectionListener listener)
Add a listener to the list that's notified each time a change to the selection occurs. |
void |
addSelectionInterval(Date date0,
Date date1)
Change the selection date1 be the set union of the current selection and the indices between date0 and date1 inclusive. |
void |
clearSelection()
Change the selection to the empty set. |
Object |
clone()
Clone the DateSelectionModel instance. |
Date |
getAnchorSelectionDate()
Return the first index argument from the most recent call to setSelectionInterval(), addSelectionInterval() or removeSelectionInterval(). |
Date |
getLeadSelectionDate()
Return the second index argument from the most recent call to setSelectionInterval(), addSelectionInterval() or removeSelectionInterval(). |
Date |
getSelectedDate()
Gets the selected date. |
Date[] |
getSelectedDates()
Gets all selected dates. |
int |
getSelectionMode()
Returns the current selection mode. |
boolean |
getValueIsAdjusting()
Returns true if the value is undergoing a series of changes. |
boolean |
isSelectedDate(Date date)
Returns true if the specified Date is selected. |
boolean |
isSelectionEmpty()
Check if current selection is empty. |
void |
removeDateSelectionListener(DateSelectionListener listener)
Remove a listener from the list that's notified each time a change to the selection occurs. |
void |
removeSelectionInterval(Date date0,
Date date1)
Change the selection to the set difference of the current selection and the indices between date0 and date1 inclusive. |
void |
setAnchorSelectionDate(Date date)
Set the anchor selection Date. |
void |
setLeadSelectionDate(Date date)
Set the lead selection date. |
void |
setSelectedDate(Date date)
Sets selected date. |
void |
setSelectedDates(Date[] dates)
Sets selected dates. |
void |
setSelectionInterval(Date date0,
Date date1)
Change the selection date1 be between date0 and date1 inclusive. |
void |
setSelectionMode(int selectionMode)
Set the selection mode. |
void |
setTimeZone(TimeZone timeZone)
Sets the timezone this selection model works on. |
void |
setValueIsAdjusting(boolean b)
This property is true if upcoming changes to the value of the model should be considered a single event. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultDateSelectionModel()
public DefaultDateSelectionModel(int mode)
Method Detail |
---|
public void addSelectionInterval(Date date0, Date date1)
DateSelectionModel
addSelectionInterval
in interface DateSelectionModel
date0
- one end of the interval.date1
- other end of the intervalDateSelectionModel.addDateSelectionListener(DateSelectionListener)
public void setSelectionInterval(Date date0, Date date1)
DateSelectionModel
setSelectionInterval
in interface DateSelectionModel
date0
- one end of the interval.date1
- other end of the intervalDateSelectionModel.addDateSelectionListener(DateSelectionListener)
public void clearSelection()
DateSelectionModel
clearSelection
in interface DateSelectionModel
DateSelectionModel.addDateSelectionListener(DateSelectionListener)
public boolean isSelectedDate(Date date)
DateSelectionModel
isSelectedDate
in interface DateSelectionModel
date
- the date to be checked
public boolean isSelectionEmpty()
DateSelectionModel
isSelectionEmpty
in interface DateSelectionModel
public void removeSelectionInterval(Date date0, Date date1)
DateSelectionModel
removeSelectionInterval
in interface DateSelectionModel
date0
- one end of the interval.date1
- other end of the intervalDateSelectionModel.addDateSelectionListener(DateSelectionListener)
public void addDateSelectionListener(DateSelectionListener listener)
DateSelectionModel
addDateSelectionListener
in interface DateSelectionModel
listener
- the DateSelectionListenerDateSelectionModel.removeDateSelectionListener(DateSelectionListener)
,
DateSelectionModel.setSelectionInterval(java.util.Date, java.util.Date)
,
DateSelectionModel.addSelectionInterval(java.util.Date, java.util.Date)
,
DateSelectionModel.removeSelectionInterval(java.util.Date, java.util.Date)
,
DateSelectionModel.clearSelection()
public void removeDateSelectionListener(DateSelectionListener listener)
DateSelectionModel
removeDateSelectionListener
in interface DateSelectionModel
listener
- the DateSelectionListenerDateSelectionModel.addDateSelectionListener(DateSelectionListener)
public Object clone() throws CloneNotSupportedException
DateSelectionModel
clone
in interface DateSelectionModel
clone
in class Object
CloneNotSupportedException
public int getSelectionMode()
DateSelectionModel
getSelectionMode
in interface DateSelectionModel
DateSelectionModel.setSelectionMode(int)
public void setSelectionMode(int selectionMode)
DateSelectionModel
SINGLE_SELECTION
Only one list index can be selected at a time. In this
mode the setSelectionInterval and addSelectionInterval
methods are equivalent, and only the second index
argument (the "lead date") is used.
SINGLE_INTERVAL_SELECTION
One contiguous index interval can be selected at a time.
In this mode setSelectionInterval and addSelectionInterval
are equivalent.
MULTIPLE_INTERVAL_SELECTION
In this mode, there's no restriction on what can be selected.
setSelectionMode
in interface DateSelectionModel
selectionMode
- the selection modeDateSelectionModel.getSelectionMode()
public Date getLeadSelectionDate()
DateSelectionModel
getLeadSelectionDate
in interface DateSelectionModel
DateSelectionModel.getAnchorSelectionDate()
,
DateSelectionModel.setSelectionInterval(java.util.Date, java.util.Date)
,
DateSelectionModel.addSelectionInterval(java.util.Date, java.util.Date)
public void setLeadSelectionDate(Date date)
DateSelectionModel
setLeadSelectionDate
in interface DateSelectionModel
date
- the lead selection dateDateSelectionModel.getLeadSelectionDate()
public Date getAnchorSelectionDate()
DateSelectionModel
getAnchorSelectionDate
in interface DateSelectionModel
DateSelectionModel.getLeadSelectionDate()
,
DateSelectionModel.setSelectionInterval(java.util.Date, java.util.Date)
,
DateSelectionModel.addSelectionInterval(java.util.Date, java.util.Date)
public void setAnchorSelectionDate(Date date)
DateSelectionModel
setAnchorSelectionDate
in interface DateSelectionModel
date
- the anchor selection dateDateSelectionModel.getAnchorSelectionDate()
public void setValueIsAdjusting(boolean b)
DateSelectionModel
setValueIsAdjusting
in interface DateSelectionModel
b
- The new value of the property.DateSelectionModel.getValueIsAdjusting()
public boolean getValueIsAdjusting()
DateSelectionModel
getValueIsAdjusting
in interface DateSelectionModel
DateSelectionModel.setValueIsAdjusting(boolean)
public Date getSelectedDate()
DateSelectionModel
getSelectedDate
in interface DateSelectionModel
public void setSelectedDate(Date date)
DateSelectionModel
setSelectedDate
in interface DateSelectionModel
date
- the selected datepublic Date[] getSelectedDates()
DateSelectionModel
getSelectedDates
in interface DateSelectionModel
public void setSelectedDates(Date[] dates)
DateSelectionModel
setSelectedDates
in interface DateSelectionModel
dates
- the selected datespublic void setTimeZone(TimeZone timeZone)
DateSelectionModel
setTimeZone
in interface DateSelectionModel
timeZone
- the time zone
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |