class org.aswing.event.SelectionEvent extends InteractiveEvent
The event for list and table selection change. @see org.aswing.JList @see org.aswing.JTable @see org.aswing.ListSelectionModel @author paling
Class Fields
static var COLUMN_SELECTION_CHANGED:String
The SelectionEvent.COLUMNSELECTIONCHANGED constant defines the value of the
type property of the event object for a listSelectionChanged event.
The properties of the event object have the following values:
| Property | Value |
|---|---|
bubbles | false |
cancelable | false |
isProgrammatic() | True means this event is fired by
|
getFirstIndex() | the first changed index. |
getLastIndex() | the last changed index. |
currentTarget | The Object that defines the
event listener that handles the event. For example, if you use
comp.addEventListener() to register an event listener,
comp is the value of the currentTarget. |
target | The Object that dispatched the event;
it is not always the Object listening for the event.
Use the currentTarget property to always access the
Object listening for the event. |
@eventType columnSelectionChanged
static var LIST_SELECTION_CHANGED:String
The SelectionEvent.LISTSELECTIONCHANGED constant defines the value of the
type property of the event object for a listSelectionChanged event.
The properties of the event object have the following values:
| Property | Value |
|---|---|
bubbles | false |
cancelable | false |
isProgrammatic() | True means this event is fired by
|
getFirstIndex() | the first changed index. |
getLastIndex() | the last changed index. |
currentTarget | The Object that defines the
event listener that handles the event. For example, if you use
comp.addEventListener() to register an event listener,
comp is the value of the currentTarget. |
target | The Object that dispatched the event;
it is not always the Object listening for the event.
Use the currentTarget property to always access the
Object listening for the event. |
@eventType listSelectionChanged
static var ROW_SELECTION_CHANGED:String
The SelectionEvent.ROWSELECTIONCHANGED constant defines the value of the
type property of the event object for a rowSelectionChanged event.
The properties of the event object have the following values:
| Property | Value |
|---|---|
bubbles | false |
cancelable | false |
isProgrammatic() | True means this event is fired by
|
getFirstIndex() | the first changed index. |
getLastIndex() | the last changed index. |
currentTarget | The Object that defines the
event listener that handles the event. For example, if you use
comp.addEventListener() to register an event listener,
comp is the value of the currentTarget. |
target | The Object that dispatched the event;
it is not always the Object listening for the event.
Use the currentTarget property to always access the
Object listening for the event. |
@eventType rowSelectionChanged
Instance Fields
![]() | Show inherited public instance fields | Hide inherited public instance fields
|
function getFirstIndex(): Int
Returns the first changed index(the begin).
| returns | the first changed index. |
