ComboBase
| Kind of class: | class |
|---|---|
| Inherits from: | UIComponent < UIObject < MovieClip |
| Known subclasses: | |
| Classpath: | mx.controls.ComboBase |
| File last modified: | Tuesday, 18 December 2007, 15:44:37 |
Summary
Constructor
Class properties
- mixIt1 : Boolean
- symbolName : String
- symbolOwner : Object
- version : String
Class properties inherited from UIComponent
Class properties inherited from UIObject
Instance properties
- setDataProvider : Function
- getDataProvider : Function
- getLength : Function
- modelChanged : Function
- calcPreferredWidthFromData : Function
- calcPreferredHeightFromData : Function
- getSelectedIndex : Function
- getSelectedItem : Function
- getSelectedIndices : Function
- getSelectedItems : Function
- selectItem : Function
- isSelected : Function
- clearSelected : Function
- setSelectedIndex : Function
- setSelectedIndices : Function
- setSelectedItem : Function
- _editable : Boolean
- downArrowUpName : String
- downArrowDownName : String
- downArrowOverName : String
- downArrowDisabledName : String
- wrapDownArrowButton : Boolean
- boundingBox_mc : Object
- downArrow_mc : Object
- oldOnKillFocus : Function
- oldOnSetFocus : Function
- __border : RectBorder
- border_mc : RectBorder
- text_mc : TextInput
- trackAsMenuWas : Boolean
- DSgetValue : Function
- dataProvider : Object
- addItemAt : Function
- addItem : Function
- removeItemAt : Function
- removeAll : Function
- replaceItemAt : Function
- sortItemsBy : Function
- sortItems : Function
- length : Number
- getItemAt : Function
- value : Object
- selectedIndex : Number
- selectedIndices : Array
- selectedItems : Array
- selectedItem
- multipleSelection : Boolean
- __dataProvider : Object
- selected : Object
- getValue : Function
- editable : Boolean
- true if the component is editable
- text : String
- textField
- restrict : String
- List of characters to allow.
- tabIndex : Number
- tab order when using tab key to navigate
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
- setFocus : Void
- Sets the focus to this object.
- setSize (w:Number, h:Number, noEvent) : Void
- setEnabled (enabledFlag:Boolean) : Void
- setEditable (e:Boolean) : Void
- _getValue
- draw : Void
- size : Void
- function (t:String) : Void
- setText (t:String) : Void
- invalidateStyle : Void
- layoutChildren (w:Number, h:Number) : Void
- _changeHandler (obj) : Void
- _enterHandler (obj) : Void
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 sizeEvent handlers- onDownArrow : Function
- onKillFocus : Void
- onSetFocus : Void
Event handlers inherited from UIComponent
Constructor
ComboBase
function ComboBase (
)
Class properties
mixIt1
static mixIt1:Boolean = DataSelector.Initialize(mx.controls.ComboBase)
(read)
symbolName
static symbolName:String = "ComboBase"
(read)
symbolOwner
static symbolOwner:Object = ComboBase
(read)
version
static version:String = "2.0.2.127"
(read)
Instance properties
__border
__dataProvider
__dataProvider:Object
(read)
_editable
_editable:Boolean = false
(read)
addItem
addItem:Function
(read)
Parameters:
label:
the label of the new item
data :
the data for the new item
Returns:
- the added item
addItemAt
addItemAt:Function
(read)
Parameters:
index:
the index at which to add the item
label:
the label of the new item
data :
the data for the new item
Returns:
- the added item
border_mc
boundingBox_mc
boundingBox_mc:Object
(read)
calcPreferredHeightFromData
calcPreferredHeightFromData:Function
(read)
calcPreferredWidthFromData
calcPreferredWidthFromData:Function
(read)
clearSelected
clearSelected:Function
(read)
dataProvider
dataProvider:Object
(read)
downArrow_mc
downArrow_mc:Object
(read)
downArrowDisabledName
downArrowDisabledName:String = "ScrollDownArrowDisabled"
(read)
downArrowDownName
downArrowDownName:String = "ScrollDownArrowDown"
(read)
downArrowOverName
downArrowOverName:String = "ScrollDownArrowOver"
(read)
downArrowUpName
downArrowUpName:String = "ScrollDownArrowUp"
(read)
DSgetValue
DSgetValue:Function = DataSelector.prototype.getValue
(read)
editable
editable:Boolean
(read,write)
true if the component is editable
Component metadata:
| Inspectable | defaultValue: false |
|---|
getDataProvider
getDataProvider:Function
(read)
getItemAt
getItemAt:Function
(read)
Parameters:
index:
the index of the items to return
Returns:
- the item
getLength
getLength:Function
(read)
getSelectedIndex
getSelectedIndex:Function
(read)
getSelectedIndices
getSelectedIndices:Function
(read)
getSelectedItem
getSelectedItem:Function
(read)
getSelectedItems
getSelectedItems:Function
(read)
getValue
getValue:Function
(read)
isSelected
isSelected:Function
(read)
length
length:Number
(read)
modelChanged
modelChanged:Function
(read)
multipleSelection
multipleSelection:Boolean = false
(read)
oldOnKillFocus
oldOnKillFocus:Function
(read)
oldOnSetFocus
oldOnSetFocus:Function
(read)
removeAll
removeAll:Function
(read)
removeItemAt
removeItemAt:Function
(read)
Parameters:
index:
the index of the item to remove
Returns:
- the removed item
replaceItemAt
replaceItemAt:Function
(read)
Parameters:
index:
the index of the item to replace
label:
the label for the replacing item
data :
the data for the replacing item
restrict
restrict:String
(read,write)
List of characters to allow.
Component metadata:
| ChangeEvent | "restrictChanged" |
|---|---|
| Inspectable | 1 category: "Limits",verbose |
selected
selected:Object
(read)
selectedIndex
selectedIndex:Number
(read)
selectedIndices
selectedIndices:Array
(read)
selectedItem
selectedItem
(read)
selectedItems
selectedItems:Array
(read)
selectItem
selectItem:Function
(read)
setDataProvider
setDataProvider:Function
(read)
setSelectedIndex
setSelectedIndex:Function
(read)
setSelectedIndices
setSelectedIndices:Function
(read)
setSelectedItem
setSelectedItem:Function
(read)
sortItems
sortItems:Function
(read)
Parameters:
compareFunc:
a function to use for comparison
sortItemsBy
sortItemsBy:Function
(read)
Parameters:
fieldName:
the field to sort on
order :
either "ASC" or "DESC"
tabIndex
tabIndex:Number
(read,write)
tab order when using tab key to navigate
text
text:String
(read,write)
text_mc
textField
textField
(read)
trackAsMenuWas
trackAsMenuWas:Boolean
(read)
value
value:Object
(read)
wrapDownArrowButton
wrapDownArrowButton:Boolean = true
(read)
Instance methods
_changeHandler
function _changeHandler (
obj) : Void
_enterHandler
function _enterHandler (
obj) : Void
_getValue
function _getValue (
)
createChildren
function createChildren (
) : Void
draw
function draw (
) : Void
function
function function (
t:String) : Void
invalidateStyle
function invalidateStyle (
) : Void
layoutChildren
function layoutChildren (
w:Number,
h:Number) : Void
setEditable
function setEditable (
e:Boolean) : Void
setEnabled
function setEnabled (
enabledFlag:Boolean) : Void
setSize
function setSize (
w:Number,
h:Number,
noEvent) : Void
setText
function setText (
t:String) : Void
Event handlers
onDownArrow
onDownArrow:Function
(read)
onKillFocus
function onKillFocus (
) : Void
onSetFocus
function onSetFocus (
) : Void