Apache Flex (FlexJS) 0.7.0 API Reference | All Packages | All Classes | Index | Frames No Frames |
StringSelectionModel

Package | org.apache.flex.html.beads.models
Class | public class StringSelectionModel
Inheritance | StringSelectionModel EventDispatcher flash.events.EventDispatcher
Implements | ISelectionModel

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

The StringSelectionModel class is a selection model for selecting a single string from a vector of strings.

Public Properties

| Property | Defined By
--- | --- | ---
|  | dataProvider : Object The dataProvider, which is a Vector.<String>. | StringSelectionModel
|  | labelField : String The labelField, which is not used in this implementation. | StringSelectionModel
|  | selectedIndex : int The index of the selected item in the dataProvider. | StringSelectionModel
|  | selectedItem : Object The data item selected in the dataProvider. | StringSelectionModel
|  | selectedString : String The selected string. | StringSelectionModel
|  | strand : IStrand [write-only] The host component for this bead. | StringSelectionModel
|  | strings : Vector.<String> The vector of strings. | StringSelectionModel

Public Methods

| Method | Defined By
--- | --- | ---
|  | StringSelectionModel() Constructor. | StringSelectionModel

Property Detail

dataProvider | property

`dataProvider:Object`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

The dataProvider, which is a Vector.<String>.

Implementation
`public function get dataProvider():Object`
`public function set dataProvider(value:Object):void`

labelField | property |

`labelField:String`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

The labelField, which is not used in this implementation.

Implementation
`public function get labelField():String`
`public function set labelField(value:String):void`

selectedIndex | property |

`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`

selectedItem | property |

`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`

selectedString | property |

`selectedString:String`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

The selected string. This is the same as the selectedItem, but is strongly-typed.

Implementation
`public function get selectedString():String`
`public function set selectedString(value:String):void`

strand | property |

`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`

strings | property |

`strings:Vector.<String>`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

The vector of strings. This is the same as the dataProvider property but is strongly typed.

Implementation
`public function get strings():Vector.<String>`
`public function set strings(value:Vector.<String>):void`
Constructor Detail

StringSelectionModel | () | Constructor

`public function StringSelectionModel()`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

Constructor.

Mon Sep 5 2016, 07:19 AM -07:00