Packageorg.aswing
Classpublic class DefaultListSelectionModel
InheritanceDefaultListSelectionModel Inheritance flash.events.EventDispatcher
ImplementsListSelectionModel

Default data model for list selections.



Public Methods
 MethodDefined by
  
DefaultListSelectionModel
  
addListSelectionListener(listener:Function):void
DefaultListSelectionModel
  
addSelectionInterval(index0:int, index1:int, programmatic:Boolean = true):void
DefaultListSelectionModel
  
clearSelection(programmatic:Boolean = true):void
DefaultListSelectionModel
  
DefaultListSelectionModel
  
DefaultListSelectionModel
  
DefaultListSelectionModel
  
DefaultListSelectionModel
  
DefaultListSelectionModel
  
insertIndexInterval(index:int, length:int, before:Boolean, programmatic:Boolean = true):void
DefaultListSelectionModel
  
isSelectedIndex(index:int):Boolean
DefaultListSelectionModel
  
isSelectionEmpty():Boolean
DefaultListSelectionModel
  
removeIndexInterval(index0:int, index1:int, programmatic:Boolean = true):void
DefaultListSelectionModel
  
removeListSelectionListener(listener:Function):void
DefaultListSelectionModel
  
removeSelectionInterval(index0:int, index1:int, programmatic:Boolean = true):void
DefaultListSelectionModel
  
setAnchorSelectionIndex(index:int):void
DefaultListSelectionModel
  
setLeadSelectionIndex(index:int):void
DefaultListSelectionModel
  
setSelectionInterval(index0:int, index1:int, programmatic:Boolean = true):void
DefaultListSelectionModel
  
setSelectionMode(selectionMode:int):void
Sets the selection mode.
DefaultListSelectionModel
  
toString():String
DefaultListSelectionModel
Protected Methods
 MethodDefined by
  
fireListSelectionEvent(firstIndex:int, lastIndex:int, programmatic:Boolean):void
DefaultListSelectionModel
Public Constants
 ConstantDefined by
  MULTIPLE_SELECTION : int = 1
[static] Can select any item at a time.
DefaultListSelectionModel
  SINGLE_SELECTION : int = 0
[static] Only can select one most item at a time.
DefaultListSelectionModel
Constructor detail
DefaultListSelectionModel()constructor
public function DefaultListSelectionModel()
Method detail
addListSelectionListener()method
public function addListSelectionListener(listener:Function):voidParameters
listener:Function
addSelectionInterval()method 
public function addSelectionInterval(index0:int, index1:int, programmatic:Boolean = true):voidParameters
index0:int
 
index1:int
 
programmatic:Boolean (default = true)
clearSelection()method 
public function clearSelection(programmatic:Boolean = true):voidParameters
programmatic:Boolean (default = true)
fireListSelectionEvent()method 
protected function fireListSelectionEvent(firstIndex:int, lastIndex:int, programmatic:Boolean):voidParameters
firstIndex:int
 
lastIndex:int
 
programmatic:Boolean
getAnchorSelectionIndex()method 
public function getAnchorSelectionIndex():int

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

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

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

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

Returns
int
insertIndexInterval()method 
public function insertIndexInterval(index:int, length:int, before:Boolean, programmatic:Boolean = true):voidParameters
index:int
 
length:int
 
before:Boolean
 
programmatic:Boolean (default = true)
isSelectedIndex()method 
public function isSelectedIndex(index:int):BooleanParameters
index:int

Returns
Boolean
isSelectionEmpty()method 
public function isSelectionEmpty():Boolean

Returns
Boolean
removeIndexInterval()method 
public function removeIndexInterval(index0:int, index1:int, programmatic:Boolean = true):voidParameters
index0:int
 
index1:int
 
programmatic:Boolean (default = true)
removeListSelectionListener()method 
public function removeListSelectionListener(listener:Function):voidParameters
listener:Function
removeSelectionInterval()method 
public function removeSelectionInterval(index0:int, index1:int, programmatic:Boolean = true):voidParameters
index0:int
 
index1:int
 
programmatic:Boolean (default = true)
setAnchorSelectionIndex()method 
public function setAnchorSelectionIndex(index:int):voidParameters
index:int
setLeadSelectionIndex()method 
public function setLeadSelectionIndex(index:int):voidParameters
index:int
setSelectionInterval()method 
public function setSelectionInterval(index0:int, index1:int, programmatic:Boolean = true):voidParameters
index0:int
 
index1:int
 
programmatic:Boolean (default = true)
setSelectionMode()method 
public function setSelectionMode(selectionMode:int):void

Sets the selection mode. The default is MULTIPLE_SELECTION.

Parameters
selectionMode:int — one of three values:
  • SINGLE_SELECTION
  • MULTIPLE_SELECTION
toString()method 
public override function toString():String

Returns
String
Constant detail
MULTIPLE_SELECTIONconstant
public static const MULTIPLE_SELECTION:int = 1

Can select any item at a time.

SINGLE_SELECTIONconstant 
public static const SINGLE_SELECTION:int = 0

Only can select one most item at a time.