public class DateSelectionEvent extends EventObject
Modifier and Type | Class and Description |
---|---|
static class |
DateSelectionEvent.EventType |
Modifier and Type | Field and Description |
---|---|
private boolean |
adjusting |
private DateSelectionEvent.EventType |
eventType |
source
Constructor and Description |
---|
DateSelectionEvent(Object source,
DateSelectionEvent.EventType eventType,
boolean adjusting)
Constructs a prototypical Event.
|
Modifier and Type | Method and Description |
---|---|
DateSelectionEvent.EventType |
getEventType()
Returns the type of this event.
|
SortedSet<Date> |
getSelection()
Returns the selection of the source dateSelectionModel.
|
boolean |
isAdjusting()
Returns a boolean indicating whether the event source is in adjusting state.
|
String |
toString() |
getSource
private DateSelectionEvent.EventType eventType
private boolean adjusting
public DateSelectionEvent(Object source, DateSelectionEvent.EventType eventType, boolean adjusting)
source
- The object on which the Event initially occurred.eventType
- the type of the eventadjusting
- the adjusting property of the sourceIllegalArgumentException
- if source is null.public SortedSet<Date> getSelection()
PENDING JW: that's the "live" selection, that is the source is re-queried on every call to this method. Bug or feature?
public final DateSelectionEvent.EventType getEventType()
public boolean isAdjusting()
public String toString()
toString
in class EventObject
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses