Packageorg.apache.flex.html
Classpublic class DropDownList
InheritanceDropDownList Inheritance Button Inheritance UIButtonBase Inheritance flash.display.SimpleButton
Subclasses DropDownList

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

The DropDownList class implements the basic equivalent of the <select> tag in HTML. The default implementation only lets the user see and choose from an array of strings. More complex controls would display icons as well as strings, or colors instead of strings or just about anything. The default behavior only lets the user choose one and only one item. More complex controls would allow mutiple selection by not dismissing the dropdown as soon as a selection is made.



Public Properties
 PropertyDefined By
 Inherited$height : Number
[read-only] Retrieve the low-level bounding box height.
UIButtonBase
 Inherited$width : Number
[read-only] Retrieve the low-level bounding box width.
UIButtonBase
 Inheritedbeads : Array
The array property that is used to add additional beads to an MXML tag.
UIButtonBase
 InheritedclassName : String
The classname.
UIButtonBase
  dataProvider : Object
The data set to be displayed.
DropDownList
 Inheritedelement : Object
[read-only] Each IUIBase has an element that is actually added to the platform's display list DOM.
UIButtonBase
 InheritedexplicitHeight : Number
The explicitly set width (as opposed to measured width or percentage width).
UIButtonBase
 InheritedexplicitWidth : Number
The explicitly set width (as opposed to measured width or percentage width).
UIButtonBase
 Inheritedheight : Number
[override] The width of the component.
UIButtonBase
 Inheritedid : String
An id property for MXML documents.
UIButtonBase
 InheritedmeasurementBead : IMeasurementBead
[read-only] A measurement bead, if one exists.
UIButtonBase
 Inheritedmodel : IBeadModel
An IBeadModel that serves as the data model for the component.
UIButtonBase
 InheritedpercentHeight : Number
The requested percentage height this component should have in the parent container.
UIButtonBase
 InheritedpercentWidth : Number
The requested percentage width this component should have in the parent container.
UIButtonBase
  selectedIndex : int
The index of the selected item in the dataProvider.
DropDownList
  selectedItem : Object
The data item selected in the dataProvider.
DropDownList
 Inheritedview : IBeadView
An IBeadView that serves as the view for the component.
UIButtonBase
 Inheritedwidth : Number
[override] The width of the component.
UIButtonBase
 Inheritedx : Number
[override]
UIButtonBase
 Inheritedy : Number
[override]
UIButtonBase
Protected Properties
 PropertyDefined By
 Inherited$x : Number
[read-only] Retrieve the low-level bounding box x.
UIButtonBase
 Inherited$y : Number
[read-only] Retrieve the low-level bounding box y.
UIButtonBase
Public Methods
 MethodDefined By
  
Constructor.
DropDownList
 Inherited
addBead(bead:IBead):void
Add a bead to the strand.
UIButtonBase
 Inherited
UIButtonBase
 Inherited
getBeadByType(classOrInterface:Class):IBead
Find a bead on the strand.
UIButtonBase
 Inherited
Remove a bead from the strand.
UIButtonBase
Events
 Event Summary Defined By
  Dispatched when the user selects an item.DropDownList
 InheritedDispatched when the user clicks on a button.Button
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 data set to be displayed. Usually a simple array of strings. A more complex component would allow more complex data and data sets.


Implementation
    public function get dataProvider():Object
    public function set dataProvider(value:Object):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
Constructor Detail
DropDownList()Constructor
public function DropDownList()

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

Constructor.

Event Detail
change Event
Event Object Type: org.apache.flex.events.Event

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

Dispatched when the user selects an item.