public class SelectionEvent extends EventObject
SelectionEvent
is designed for indicating an object
selection status is changed. It can be used for indicating the
selection or the deselection of
SelectionListener
,
ActivitySelectionEvent
,
Serialized Formsource
Constructor and Description |
---|
SelectionEvent(Object source,
boolean selected)
Creates a
SelectionEvent . |
Modifier and Type | Method and Description |
---|---|
boolean |
isAdjusting()
Returns the event adjusting value.
|
boolean |
isObjectSelected()
Returns the new selection status of the event source object.
|
boolean |
isSelected()
Returns the new selection status of the event source object.
|
void |
setAdjusting(boolean adjusting)
Sets whether this event is multiple or not.
|
String |
toString()
Returns a string representation of this event.
|
getSource
public SelectionEvent(Object source, boolean selected)
SelectionEvent
.source
- The object whose selection status has changed.selected
- The new selection status.public boolean isObjectSelected()
public boolean isSelected()
public boolean isAdjusting()
true
, it means the event data
object is part of a selection group, like multiple selection.
The last selection event of the group will have adjusting
value set to false
.public void setAdjusting(boolean adjusting)
adjusting
- the new adjusting value eventpublic String toString()
toString
in class EventObject
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.