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:

PropertyValue
bubblesfalse
cancelablefalse
isProgrammatic()True means this event is fired by

the programmatic reason, false means user mouse/keyboard interaction reason.</td></tr>

getFirstIndex()the first changed index.
getLastIndex()the last changed index.
currentTargetThe 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.
targetThe 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:

PropertyValue
bubblesfalse
cancelablefalse
isProgrammatic()True means this event is fired by

the programmatic reason, false means user mouse/keyboard interaction reason.</td></tr>

getFirstIndex()the first changed index.
getLastIndex()the last changed index.
currentTargetThe 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.
targetThe 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:

PropertyValue
bubblesfalse
cancelablefalse
isProgrammatic()True means this event is fired by

the programmatic reason, false means user mouse/keyboard interaction reason.</td></tr>

getFirstIndex()the first changed index.
getLastIndex()the last changed index.
currentTargetThe 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.
targetThe 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 fieldsHide inherited public instance fields

Inherited from InteractiveEvent

function clone():Event
function isProgrammatic():Bool

Inherited from AWEvent

function clone():Event

Inherited from Event

var bubbles:Bool
var cancelable:Bool
var currentTarget:Dynamic
var eventPhase:EventPhase
var target:Dynamic
var type:String
function clone():Event
function formatToString(className:String, ?p1:Dynamic, ?p2:Dynamic, ?p3:Dynamic, ?p4:Dynamic, ?p5:Dynamic):String
function isDefaultPrevented():Bool
function preventDefault():Void
function stopImmediatePropagation():Void
function stopPropagation():Void
function toString():String

function new(type:String, firstIndex:Int, lastIndex:Int, programmatic:Bool): Void

function clone(): Event

function getFirstIndex(): Int

Returns the first changed index(the begin).

returns

the first changed index.

function getLastIndex(): Int

Returns the last changed index(the end).

returns

the last changed index.