|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DateSelectionModel
Field Summary | |
---|---|
static int |
MULTIPLE_INTERVAL_SELECTION
Used to support multiple Date intevals. |
static int |
SINGLE_INTERVAL_SELECTION
Used to support only one Date interval. |
static int |
SINGLE_SELECTION
Used to support only one Date selected. |
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. |
Field Detail |
---|
static final int SINGLE_SELECTION
static final int SINGLE_INTERVAL_SELECTION
static final int MULTIPLE_INTERVAL_SELECTION
Method Detail |
---|
void addSelectionInterval(java.util.Date from, java.util.Date to)
from
- starting dateto
- end datevoid clearSelection()
boolean isSelectedDate(java.util.Date date)
date
- Date to check.
boolean isSelectionEmpty()
int getSelectionMode()
void setSelectionMode(int selectionMode)
selectionMode
- the new selection mode.void removeSelectionInterval(java.util.Date from, java.util.Date to)
from
- starting dateto
- end datevoid addDateSelectionListener(DateSelectionListener listener)
listener
- The listener to register.void removeDateSelectionListener(DateSelectionListener listener)
listener
- The listener to remove.java.util.Date getLeadSelectionDate()
void setLeadSelectionDate(java.util.Date date)
date
- lead selection Date.java.lang.Object getSelectedDate()
java.lang.Object[] getSelectedDates()
void setSelectedDate(java.lang.Object date)
date
- selected Date.void setSelectedDates(java.lang.Object[] dates)
dates
- selected Dates.void setValueIsAdjusting(boolean b)
b
- boolean getValueIsAdjusting()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |