Apache Flex 4.16.0 API Reference | All Packages | All Classes | Index | Frames No Frames |
ISelectableList

Package | mx.core
Interface | public interface ISelectableList extends IList, flash.events.IEventDispatcher
Implementors | DataNavigator, DataNavigatorGroup, NavigatorGroup, TabbedViewNavigator, ViewStack

Language Version : | ActionScript 3.0

Product Version : | Flex 4

Runtime Versions : | Flash Player 10, AIR 1.5

The ISelectableList interface indicates that the implementor is an IList element that supports a `selectedIndex` property.

Public Properties
Hide Inherited Public Properties
Show Inherited Public Properties

| Property | Defined By
--- | --- | ---
|  | length : int [read-only] The number of items in this collection. | IList
|  | selectedIndex : int The index of the selected IList item. | ISelectableList

Public Methods
Hide Inherited Public Methods
Show Inherited Public Methods

| Method | Defined By
--- | --- | ---
|  | addItem(item:Object):void Adds the specified item to the end of the list. | IList
|  | addItemAt(item:Object, index:int):void Adds the item at the specified index. | IList
|  | getItemAt(index:int, prefetch:int = 0):Object Gets the item at the specified index. | IList
|  | getItemIndex(item:Object):int Returns the index of the item if it is in the list such that getItemAt(index) == item. | IList
|  | itemUpdated(item:Object, property:Object = null, oldValue:Object = null, newValue:Object = null):void Notifies the view that an item has been updated. | IList
|  | removeAll():void Removes all items from the list. | IList
|  | removeItemAt(index:int):Object Removes the item at the specified index and returns it. | IList
|  | setItemAt(item:Object, index:int):Object Places the item at the specified index. | IList
|  | toArray():Array Returns an Array that is populated in the same order as the IList implementation. | IList

Events

| Event | Summary | Defined By
--- | --- | --- | ---
|  | change | Dispatched when the selectedIndex property changes. | ISelectableList
|  | valueCommit | Dispatched when the selectedIndex property changes. | ISelectableList

Property Detail

selectedIndex | property

`selectedIndex:int`

Language Version : | ActionScript 3.0

Product Version : | Flex 4

Runtime Versions : | Flash Player 10, AIR 1.5

The index of the selected IList item.

Implementation
`public function get selectedIndex():int`
`public function set selectedIndex(value:int):void`
Event Detail

change | Event

Language Version : | ActionScript 3.0

Product Version : | Flex 4

Runtime Versions : | Flash Player 10, AIR 1.5

Dispatched when the `selectedIndex` property changes.

valueCommit | Event |

Language Version : | ActionScript 3.0

Product Version : | Flex 4

Runtime Versions : | Flash Player 10, AIR 1.5

Dispatched when the `selectedIndex` property changes.

Sun Mar 5 2017, 03:42 PM +11:00