Packageorg.aswing.event
Classpublic class SelectionEvent
InheritanceSelectionEvent Inheritance InteractiveEvent Inheritance AWEvent Inheritance flash.events.Event

The event for list selection change.

See also

org.aswing.JList
org.aswing.ListSelectionModel


Public Methods
 MethodDefined by
  
SelectionEvent(type:String, firstIndex:int, lastIndex:int, programmatic:Boolean)
SelectionEvent
  
clone():Event
SelectionEvent
  
Returns the first changed index(the begin).
SelectionEvent
  
Returns the last changed index(the end).
SelectionEvent
 Inherited
isProgrammatic():Boolean
Returns the programmatic property.
InteractiveEvent
Public Constants
 ConstantDefined by
 InheritedACT : String = "act"
[static] The AWEvent.ACT constant defines the value of the type property of the event object for a act event.
AWEvent
  COLUMN_SELECTION_CHANGED : String = "columnSelectionChanged"
[static] The SelectionEvent.COLUMN_SELECTION_CHANGED constant defines the value of the type property of the event object for a listSelectionChanged event.
SelectionEvent
 InheritedFOCUS_GAINED : String = "focusGained"
[static] The AWEvent.FOCUS_GAINED constant defines the value of the type property of the event object for a focusGained event.
AWEvent
 InheritedFOCUS_LOST : String = "focusLost"
[static] The AWEvent.FOCUS_LOST constant defines the value of the type property of the event object for a focusLost event.
AWEvent
 InheritedHIDDEN : String = "hidden"
[static] The AWEvent.HIDDEN constant defines the value of the type property of the event object for a hidden event.
AWEvent
  LIST_SELECTION_CHANGED : String = "listSelectionChanged"
[static] The SelectionEvent.LIST_SELECTION_CHANGED constant defines the value of the type property of the event object for a listSelectionChanged event.
SelectionEvent
 InheritedPAINT : String = "paint"
[static] The AWEvent.PAINT constant defines the value of the type property of the event object for a paint event.
AWEvent
  ROW_SELECTION_CHANGED : String = "rowSelectionChanged"
[static] The SelectionEvent.ROW_SELECTION_CHANGED constant defines the value of the type property of the event object for a rowSelectionChanged event.
SelectionEvent
 InheritedSCROLL_CHANGED : String = "scrollChanged"
[static] The InteractiveEvent.SCROLL_CHANGED constant defines the value of the type property of the event object for a scrollChanged event.
InteractiveEvent
 InheritedSELECTION_CHANGED : String = "selectionChanged"
[static] The InteractiveEvent.SELECTION_CHANGED constant defines the value of the type property of the event object for a selectionChanged event.
InteractiveEvent
 InheritedSHOWN : String = "shown"
[static] The AWEvent.SHOWN constant defines the value of the type property of the event object for a shown event.
AWEvent
 InheritedSTATE_CHANGED : String = "stateChanged"
[static] The InteractiveEvent.STATE_CHANGED constant defines the value of the type property of the event object for a stateChanged event.
InteractiveEvent
 InheritedTEXT_CHANGED : String = "textChanged"
[static] The InteractiveEvent.TEXT_CHANGED constant defines the value of the type property of the event object for a textChanged event.
InteractiveEvent
Constructor detail
SelectionEvent()constructor
public function SelectionEvent(type:String, firstIndex:int, lastIndex:int, programmatic:Boolean)Parameters
type:String
 
firstIndex:int
 
lastIndex:int
 
programmatic:Boolean
Method detail
clone()method
public override function clone():Event

Returns
Event
getFirstIndex()method 
public function getFirstIndex():int

Returns the first changed index(the begin).

Returns
int
getLastIndex()method 
public function getLastIndex():int

Returns the last changed index(the end).

Returns
int
Constant detail
COLUMN_SELECTION_CHANGEDconstant
public static const COLUMN_SELECTION_CHANGED:String = "columnSelectionChanged"

The SelectionEvent.COLUMN_SELECTION_CHANGED 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.
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.
LIST_SELECTION_CHANGEDconstant 
public static const LIST_SELECTION_CHANGED:String = "listSelectionChanged"

The SelectionEvent.LIST_SELECTION_CHANGED 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.
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.
ROW_SELECTION_CHANGEDconstant 
public static const ROW_SELECTION_CHANGED:String = "rowSelectionChanged"

The SelectionEvent.ROW_SELECTION_CHANGED 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.
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.