Adobe® Flex® 4 Language Reference
Show Packages and Classes List |  Packages  |  Classes  |  Index  |  Appendixes
mx.core 
ISelectableList 
Packagemx.core
Interfacepublic interface ISelectableList extends IList , IEventDispatcher
Implementors 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
 PropertyDefined By
 Inheritedlength : int
[read-only] The number of items in this collection.
IList
  selectedIndex : int
The index of the selected IList item.
ISelectableList
Public Methods
 MethodDefined By
 Inherited
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
 Inherited
Adds the specified item to the end of the list.
IList
 Inherited
addItemAt(item:Object, index:int):void
Adds the item at the specified index.
IList
 Inherited
Dispatches an event into the event flow.
IEventDispatcher
 Inherited
getItemAt(index:int, prefetch:int = 0):Object
Gets the item at the specified index.
IList
 Inherited
Returns the index of the item if it is in the list such that getItemAt(index) == item.
IList
 Inherited
Checks whether the EventDispatcher object has any listeners registered for a specific type of event.
IEventDispatcher
 Inherited
itemUpdated(item:Object, property:Object = null, oldValue:Object = null, newValue:Object = null):void
Notifies the view that an item has been updated.
IList
 Inherited
Removes all items from the list.
IList
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Removes a listener from the EventDispatcher object.
IEventDispatcher
 Inherited
Removes the item at the specified index and returns it.
IList
 Inherited
setItemAt(item:Object, index:int):Object
Places the item at the specified index.
IList
 Inherited
Returns an Array that is populated in the same order as the IList implementation.
IList
 Inherited
Checks whether an event listener is registered with this EventDispatcher object or any of its ancestors for the specified event type.
IEventDispatcher
Events
 Event Summary Defined By
  Dispatched when the selectedIndex property changes.ISelectableList
  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.