mx.core

# ISelectableList - AS3 Flex

Package | mx.core
Interface | public interface ISelectableList extends IList , IEventDispatcher
Implementors | SelectableList, 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
--- | --- | ---
|  | addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void Registers an event listener object with an EventDispatcher object so that the listener receives notification of an event. | IEventDispatcher
|  | 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
|  | dispatchEvent(event:Event):Boolean Dispatches an event into the event flow. | IEventDispatcher
|  | 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
|  | hasEventListener(type:String):Boolean Checks whether the EventDispatcher object has any listeners registered for a specific type of event. | IEventDispatcher
|  | 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
|  | removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void Removes a listener from the EventDispatcher object. | IEventDispatcher
|  | 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
|  | willTrigger(type:String):Boolean Checks whether an event listener is registered with this EventDispatcher object or any of its ancestors for the specified event type. | IEventDispatcher

Events
Click for more information on 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.

© 2015 Adobe Systems Incorporated. All rights reserved.
Mon Apr 10 2017, 12:28 PM -07:00