Packageorg.aswing
Classpublic class DefaultSingleSelectionModel
InheritanceDefaultSingleSelectionModel Inheritance flash.events.EventDispatcher
ImplementsSingleSelectionModel

A generic implementation of SingleSelectionModel.



Public Methods
 MethodDefined by
  
DefaultSingleSelectionModel
  
addStateListener(listener:Function, priority:int = 0, useWeakReference:Boolean = false):void
DefaultSingleSelectionModel
  
clearSelection(programmatic:Boolean = true):void
DefaultSingleSelectionModel
  
DefaultSingleSelectionModel
  
isSelected():Boolean
DefaultSingleSelectionModel
  
removeStateListener(listener:Function):void
DefaultSingleSelectionModel
  
setSelectedIndex(index:int, programmatic:Boolean = true):void
DefaultSingleSelectionModel
Constructor detail
DefaultSingleSelectionModel()constructor
public function DefaultSingleSelectionModel()
Method detail
addStateListener()method
public function addStateListener(listener:Function, priority:int = 0, useWeakReference:Boolean = false):voidParameters
listener:Function
 
priority:int (default = 0)
 
useWeakReference:Boolean (default = false)
clearSelection()method 
public function clearSelection(programmatic:Boolean = true):voidParameters
programmatic:Boolean (default = true)
getSelectedIndex()method 
public function getSelectedIndex():int

Returns
int
isSelected()method 
public function isSelected():Boolean

Returns
Boolean
removeStateListener()method 
public function removeStateListener(listener:Function):voidParameters
listener:Function
setSelectedIndex()method 
public function setSelectedIndex(index:int, programmatic:Boolean = true):voidParameters
index:int
 
programmatic:Boolean (default = true)