Package | org.apache.flex.html |
Class | public class DropDownList |
Inheritance | DropDownList ![]() ![]() ![]() |
Subclasses | DropDownList |
Language Version : | ActionScript 3.0 |
Product Version : | FlexJS 0.0 |
Runtime Versions : | Flash Player 10.2, AIR 2.6 |
<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.
Property | Defined By | ||
---|---|---|---|
![]() | $height : Number [read-only]
Retrieve the low-level bounding box height. | UIButtonBase | |
![]() | $width : Number [read-only]
Retrieve the low-level bounding box width. | UIButtonBase | |
![]() | beads : Array
The array property that is used to add additional
beads to an MXML tag. | UIButtonBase | |
![]() | className : String
The classname. | UIButtonBase | |
dataProvider : Object
The data set to be displayed. | DropDownList | ||
![]() | element : Object [read-only]
Each IUIBase has an element that is actually added to
the platform's display list DOM. | UIButtonBase | |
![]() | explicitHeight : Number
The explicitly set width (as opposed to measured width
or percentage width). | UIButtonBase | |
![]() | explicitWidth : Number
The explicitly set width (as opposed to measured width
or percentage width). | UIButtonBase | |
![]() | height : Number [override]
The width of the component. | UIButtonBase | |
![]() | id : String
An id property for MXML documents. | UIButtonBase | |
![]() | measurementBead : IMeasurementBead [read-only]
A measurement bead, if one exists. | UIButtonBase | |
![]() | model : IBeadModel
An IBeadModel that serves as the data model for the component. | UIButtonBase | |
![]() | percentHeight : Number
The requested percentage height this component
should have in the parent container. | UIButtonBase | |
![]() | percentWidth : 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 | ||
![]() | view : IBeadView
An IBeadView that serves as the view for the component. | UIButtonBase | |
![]() | width : Number [override]
The width of the component. | UIButtonBase | |
![]() | x : Number [override] | UIButtonBase | |
![]() | y : Number [override] | UIButtonBase |
Method | Defined By | ||
---|---|---|---|
Constructor. | DropDownList | ||
![]() |
Add a bead to the strand. | UIButtonBase | |
![]() | addedToParent():void | UIButtonBase | |
![]() | getBeadByType(classOrInterface:Class):IBead
Find a bead on the strand. | UIButtonBase | |
![]() |
Remove a bead from the strand. | UIButtonBase |
Event | Summary | Defined By | ||
---|---|---|---|---|
Dispatched when the user selects an item. | DropDownList | |||
![]() | Dispatched when the user clicks on a button. | Button |
dataProvider | property |
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.
public function get dataProvider():Object
public function set dataProvider(value:Object):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.
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.
public function get selectedItem():Object
public function set selectedItem(value:Object):void
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.
change | Event |
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.