Packageorg.apache.flex.html.beads.models
Classpublic class ArraySelectionModel
InheritanceArraySelectionModel Inheritance EventDispatcher Inheritance flash.events.EventDispatcher
Implements ISelectionModel, IRollOverModel
Subclasses ChartArraySelectionModel, ComboBoxModel

Language Version : ActionScript 3.0
Product Version : FlexJS 0.0
Runtime Versions : Flash Player 10.2, AIR 2.6

The ArraySelectionModel class is a selection model for a dataProvider that is an array. It assumes that items can be fetched from the dataProvider dataProvider[index]. Other selection models would support other kinds of data providers.



Public Properties
 PropertyDefined By
  dataProvider : Object
The set of choices displayed in the ComboBox's dropdown.
ArraySelectionModel
  labelField : String
The property on the data item that the item renderer should renderer.
ArraySelectionModel
  rollOverIndex : int
The index of the item that is currently under the mouse.
ArraySelectionModel
  selectedIndex : int
The index of the selected item in the dataProvider.
ArraySelectionModel
  selectedItem : Object
The data item selected in the dataProvider.
ArraySelectionModel
  selectedString : String
An alternative to selectedItem for strongly typing the the selectedItem if the Array is an Array of Strings.
ArraySelectionModel
  strand : IStrand
[write-only] The host component for this bead.
ArraySelectionModel
Public Methods
 MethodDefined By
  
Constructor.
ArraySelectionModel
Property Detail
dataProviderproperty
dataProvider:Object

Language Version : ActionScript 3.0
Product Version : FlexJS 0.0
Runtime Versions : Flash Player 10.2, AIR 2.6

The set of choices displayed in the ComboBox's dropdown. The dataProvider can be a simple array or vector if the set of choices is not going to be modified (except by wholesale replacement of the dataProvider). To use different kinds of data sets, you may need to provide an alternate "mapping" bead that iterates the dataProvider, generates item renderers and assigns a data item to the item renderers.


Implementation
    public function get dataProvider():Object
    public function set dataProvider(value:Object):void
labelFieldproperty 
labelField:String

Language Version : ActionScript 3.0
Product Version : FlexJS 0.0
Runtime Versions : Flash Player 10.2, AIR 2.6

The property on the data item that the item renderer should renderer.


Implementation
    public function get labelField():String
    public function set labelField(value:String):void
rollOverIndexproperty 
rollOverIndex:int

Language Version : ActionScript 3.0
Product Version : FlexJS 0.0
Runtime Versions : Flash Player 10.2, AIR 2.6

The index of the item that is currently under the mouse.


Implementation
    public function get rollOverIndex():int
    public function set rollOverIndex(value:int):void
selectedIndexproperty 
selectedIndex:int

Language Version : ActionScript 3.0
Product Version : FlexJS 0.0
Runtime Versions : Flash Player 10.2, AIR 2.6

The index of the selected item in the dataProvider. Values less than 0 can have specific meanings but generally mean that no item is selected because the user has typed in a custom entry or has yet to make a choice.


Implementation
    public function get selectedIndex():int
    public function set selectedIndex(value:int):void
selectedItemproperty 
selectedItem:Object

Language Version : ActionScript 3.0
Product Version : FlexJS 0.0
Runtime Versions : Flash Player 10.2, AIR 2.6

The data item selected in the dataProvider. null usually means that the user has not selected a value and has typed in a custom entry.


Implementation
    public function get selectedItem():Object
    public function set selectedItem(value:Object):void
selectedStringproperty 
selectedString:String

Language Version : ActionScript 3.0
Product Version : FlexJS 0.0
Runtime Versions : Flash Player 10.2, AIR 2.6

An alternative to selectedItem for strongly typing the the selectedItem if the Array is an Array of Strings.


Implementation
    public function get selectedString():String
    public function set selectedString(value:String):void
strandproperty 
strand:IStrand  [write-only]

Language Version : ActionScript 3.0
Product Version : FlexJS 0.0
Runtime Versions : Flash Player 10.2, AIR 2.6

The host component for this bead.


Implementation
    public function set strand(value:IStrand):void
Constructor Detail
ArraySelectionModel()Constructor
public function ArraySelectionModel()

Language Version : ActionScript 3.0
Product Version : FlexJS 0.0
Runtime Versions : Flash Player 10.2, AIR 2.6

Constructor.