ComboBox
| Kind of class: | class |
|---|---|
| Inherits from: | ComboBase < UIComponent < UIObject < MovieClip |
| Classpath: | mx.controls.ComboBox |
| File last modified: | Tuesday, 18 December 2007, 15:44:37 |
Component metadata:
| Event | "change" |
|---|
Summary
Constructor
Class properties
- symbolName : String
- symbolOwner : Object
- version : String
- mergedClipParameters : Boolean
Class properties inherited from ComboBase
Class properties inherited from UIComponent
Class properties inherited from UIObject
Instance properties
- clipParameters : Object
- className : String
- __labels : Array
- data : Array
- _showingDropdown : Boolean
- __rowCount : Number
- __dropdownWidth : Number
- __dropdown : MovieClip
- mask : MovieClip
- dropdownBorderStyle : String
- initializing
- __labelField : String
- __labelFunction : Function
- __selectedIndexOnDropdown : Number
- __initialSelectedIndexOnDropdown : Number
- dispatchValueChangedEvent : Function
- addItemAt : Function
- dataProvider : Array
- length : Number
- selectedItem : Object
- selectedIndex : Number
- _inherited_value : String
- isPressed : Boolean
- owner : Object
- bInKeyDown : Boolean
- labels : Array
- labelField : String
- labelFunction : Function
- rowCount : Number
- dropdownWidth : Number
- dropdown : Object
- selectedLabel : String
Instance properties inherited from ComboBase
__border __dataProvider _editable addItem addItemAt border_mc boundingBox_mc calcPreferredHeightFromData calcPreferredWidthFromData clearSelected dataProvider downArrow_mc downArrowDisabledName downArrowDownName downArrowOverName downArrowUpName DSgetValue editable getDataProvider getItemAt getLength getSelectedIndex getSelectedIndices getSelectedItem getSelectedItems getValue isSelected length modelChanged multipleSelection oldOnKillFocus oldOnSetFocus onDownArrow removeAll removeItemAt replaceItemAt restrict selected selectedIndex selectedIndices selectedItem selectedItems selectItem setDataProvider setSelectedIndex setSelectedIndices setSelectedItem sortItems sortItemsBy tabIndex text text_mc textField trackAsMenuWas value wrapDownArrowButton
Instance properties inherited from UIComponent
Instance properties inherited from UIObject
__height __onUnload __width _color _endInit _id _maxHeight _maxWidth _minHeight _minWidth _preferredHeight _preferredWidth _tf _topmost addEventListener bottom buildDepthTable changeColorStyleInChildren changeTextStyleInChildren childrenCreated className clipParameters color createAccessibilityImplementation createChildAtDepth createClassChildAtDepth createEvent dispatchEvent embedFonts findNextAvailableDepth fontFamily fontSize fontStyle fontWeight handleEvent height idNames ignoreClassStyleDeclaration initProperties invalidateFlag left lineColor lineWidth marginLeft marginRight methodTable minHeight minWidth notifyStyleChangeInChildren removeEventListener right scaleX scaleY setStyle stylecache styleName tabEnabled textAlign textDecoration textIndent tfList top validateNow visible width x y
Class methods
Class methods inherited from UIObject
Instance methods
- init : Void
- createChildren : Void
- getDropdown : Object
- setSize (w:Number, h:Number, noEvent) : Void
- setEditable (e:Boolean) : Void
- getLabelField : String
- setLabelField (s:String) : Void
- getLabelFunction : Function
- setSelectedItem (v) : Void
- setSelectedIndex (v:Number) : Void
- setRowCount (count:Number) : Void
- setDropdownWidth (w:Number) : Void
- setDataProvider (dp:Array)
- open : Void
- close : Void
- hasDropdown : Boolean
- tweenEndShow (value:Number) : Void
- tweenEndHide (value:Number) : Void
- displayDropdown (show:Boolean) : Void
- keyDown (e:Object) : Void
- invalidateStyle (styleProp:String) : Void
- changeTextStyleInChildren (styleProp:String) : Void
- changeColorStyleInChildren (sheetName:String, styleProp:String, newValue) : Void
- notifyStyleChangeInChildren (sheetName:String, styleProp:String, newValue) : Void
- _resizeHandler : Void
- _changeHandler (obj) : Void
- _scrollHandler (obj) : Void
- _itemRollOverHandler (obj) : Void
- _itemRollOutHandler (obj) : Void
- modelChanged (eventObj:Object) : Void
- dispatchChangeEvent (obj, prevValue, newValue)
Instance methods inherited from ComboBase
Instance methods inherited from UIObject
__getTextFormat _createChildren _getTextFormat cancelAllDoLaters constructObject createChildren createClassObject createEmptyObject createLabel createObject createSkin destroyObject doLater doLaterDispatcher draw drawRect getClassStyleDeclaration getMinHeight getMinWidth getSkinIDName getStyle getStyleName init initFromClipParameters invalidate invalidateStyle move redraw setColor setMinHeight setMinWidth setSize setSkin setVisible size
Event handlers
- onKillFocus (n) : Void
- onDownArrow : Void
- onUnload : Void
Event handlers inherited from ComboBase
Event handlers inherited from UIComponent
Constructor
ComboBox
function ComboBox (
)
Class properties
mergedClipParameters
static mergedClipParameters:Boolean = UIObject.mergeClipParameters(ComboBox.prototype.clipParameters, ComboBase.prototype.clipParameters)
(read)
symbolName
static symbolName:String = "ComboBox"
(read)
symbolOwner
static symbolOwner:Object = ComboBox
(read)
version
static version:String = "2.0.2.127"
(read)
Instance properties
__dropdown
__dropdown:MovieClip
(read)
__dropdownWidth
__dropdownWidth:Number
(read)
__initialSelectedIndexOnDropdown
__initialSelectedIndexOnDropdown:Number
(read)
__labelField
__labelField:String = "label"
(read)
__labelFunction
__labelFunction:Function
(read)
__labels
__labels:Array
(read)
__rowCount
__rowCount:Number = 5
(read)
__selectedIndexOnDropdown
__selectedIndexOnDropdown:Number
(read)
_inherited_value
_inherited_value:String
(read)
Component metadata:
| Bindable | "readonly" |
|---|---|
| ChangeEvent | "change" |
_showingDropdown
_showingDropdown:Boolean = false
(read)
addItemAt
addItemAt:Function
(read)
bInKeyDown
bInKeyDown:Boolean = false
(read)
className
className:String = "ComboBox"
(read)
clipParameters
clipParameters:Object = { labels:1, data:1, editable: 1, rowCount: 1, dropdownWidth: 1}
(read)
data
data:Array
(read)
Component metadata:
| Inspectable |
|---|
dataProvider
dataProvider:Array
(read)
Component metadata:
| Bindable | "DataProvider" param1: "writeonly",type |
|---|
dispatchValueChangedEvent
dispatchValueChangedEvent:Function
(read)
dropdown
dropdown:Object
(read)
dropdownBorderStyle
dropdownBorderStyle:String = undefined
(read)
dropdownWidth
dropdownWidth:Number
(read,write)
initializing
initializing = true
(read)
isPressed
isPressed:Boolean
(read)
labelField
labelField:String
(read,write)
labelFunction
labelFunction:Function
(read,write)
labels
labels:Array
(read,write)
Component metadata:
| Inspectable | defaultValue: "" |
|---|
length
length:Number
(read)
mask
mask:MovieClip
(read)
owner
owner:Object
(read)
rowCount
rowCount:Number
(read,write)
selectedIndex
selectedIndex:Number
(read)
Component metadata:
| Bindable | |
|---|---|
| ChangeEvent | "change" |
selectedItem
selectedItem:Object
(read)
Component metadata:
| Bindable | "readonly" |
|---|---|
| ChangeEvent | "change" |
selectedLabel
selectedLabel:String
(read)
Instance methods
_itemRollOutHandler
function _itemRollOutHandler (
obj) : Void
_itemRollOverHandler
function _itemRollOverHandler (
obj) : Void
_resizeHandler
function _resizeHandler (
) : Void
_scrollHandler
function _scrollHandler (
obj) : Void
changeColorStyleInChildren
function changeColorStyleInChildren (
sheetName:String,
styleProp:String,
newValue) : Void
changeTextStyleInChildren
function changeTextStyleInChildren (
styleProp:String) : Void
close
function close (
) : Void
dispatchChangeEvent
function dispatchChangeEvent (
obj,
prevValue,
newValue)
displayDropdown
function displayDropdown (
show:Boolean) : Void
getDropdown
function getDropdown (
) : Object
getLabelField
function getLabelField (
) : String
getLabelFunction
function getLabelFunction (
) : Function
hasDropdown
function hasDropdown (
) : Boolean
invalidateStyle
function invalidateStyle (
styleProp:String) : Void
keyDown
function keyDown (
e:Object) : Void
modelChanged
function modelChanged (
eventObj:Object) : Void
notifyStyleChangeInChildren
function notifyStyleChangeInChildren (
sheetName:String,
styleProp:String,
newValue) : Void
open
function open (
) : Void
setDataProvider
function setDataProvider (
dp:Array)
setDropdownWidth
function setDropdownWidth (
w:Number) : Void
setLabelField
function setLabelField (
s:String) : Void
setRowCount
function setRowCount (
count:Number) : Void
setSelectedIndex
function setSelectedIndex (
v:Number) : Void
setSelectedItem
function setSelectedItem (
v) : Void
tweenEndHide
function tweenEndHide (
value:Number) : Void
tweenEndShow
function tweenEndShow (
value:Number) : Void
Event handlers
onDownArrow
function onDownArrow (
) : Void
onKillFocus
function onKillFocus (
n) : Void
onUnload
function onUnload (
) : Void