Main Page | Packages | Class Tree | Index | Help

mx.controls

class ComboBox

Object
  |
  +--MovieClip
        |
        +--mx.core.UIObject
              |
              +--mx.core.UIComponent
                    |
                    +--mx.controls.ComboBase
                          |
                          +--mx.controls.ComboBox


class ComboBox
extends ComboBase

ComboBox class - extends ComboBase - uses Popup class - adds a listbox inside a popup, and a mask



Field Summary


__selectedIndexOnDropdown: Number



_inherited_value: String



bInKeyDown: Boolean



className: String



initializing



isPressed: Boolean


static
mergedClipParameters: Boolean



owner: Object
used by button events

static
symbolName: String
-- Initialization ----------------------------------------

static
symbolOwner: Object


static
version: String
Copyright (C) 2003 Macromedia, Inc.

Fields inherited from class mx.controls.ComboBase

__border, __dataProvider, calcPreferredHeightFromData, calcPreferredWidthFromData, clearSelected, getDataProvider, getLength, getSelectedIndex, getSelectedIndices, getSelectedItem, getSelectedItems, getValue, isSelected, mixIt1, modelChanged, multipleSelection, oldOnKillFocus, oldOnSetFocus, onDownArrow, selected, selectedIndex, selectedIndices, selectedItem, selectedItems, selectItem, setDataProvider, setSelectedIndex, setSelectedIndices, setSelectedItem, symbolName, symbolOwner, value, version, wrapDownArrowButton

Fields inherited from class mx.core.UIComponent

clipParameters, drawFocus, enabled, focusEnabled, focusManager, focusTextField, groupName, kStretch, mergedClipParameters, origBorderStyles, origBorderValues, popUp, symbolName, symbolOwner, tabEnabled, tabIndex, version

Fields inherited from class mx.core.UIObject

__height, __width, _color, _topmost, addEventListener, buildDepthTable, changeColorStyleInChildren, changeTextStyleInChildren, childrenCreated, className, clipParameters, color, createAccessibilityImplementation, createChildAtDepth, createEvent, ction, dispatchEvent, embedFonts, findNextAvailableDepth, fontFamily, fontSize, fontStyle, fontWeight, handleEvent, idNames, ignoreClassStyleDeclaration, initProperties, marginLeft, marginRight, methodTable, notifyStyleChangeInChildren, removeEventListener, setStyle, stylecache, styleName, symbolName, symbolOwner, textAlign, textColorList, textDecoration, textIndent, validateNow, version

Fields inherited from class MovieClip

_alpha, _currentframe, _droptarget, _focusrect, _framesloaded, _height, _lockroot, _name, _parent, _quality, _rotation, _soundbuftime, _target, _totalframes, _url, _visible, _width, _x, _xmouse, _xscale, _y, _ymouse, _yscale, enabled, focusEnabled, hitArea, tabChildren, tabEnabled, tabIndex, tooltipText, trackAsMenu, useHandCursor

Fields inherited from class Object

__proto__, constructor, prototype

Property Summary


dropdown: Object (read-only)



dropdownWidth: Number (read, write)



labelField: String (read, write)



labelFunction: Function (read, write)



labels: Array (read, write)



rowCount: Number (read, write)



selectedLabel: String (read-only)
::: PROTECTED METHODS -- Selected Label --------------------------------------

Properties inherited from class mx.controls.ComboBase

editable, restrict, tabIndex, text, textField

Properties inherited from class mx.core.UIComponent

height, width

Properties inherited from class mx.core.UIObject

bottom, height, left, minHeight, minWidth, right, scaleX, scaleY, top, visible, width, x, y

Constructor


ComboBox ( )
-- Constructor -----------------------------------------

Method Summary


_changeHandler ( obj ): Void
-- Change Handler ------------------------------------


_itemRollOutHandler ( obj ): Void
-- Item Roll Out Handler ------------------------------


_itemRollOverHandler ( obj ): Void
-- Item Roll Over Handler -----------------------------


_resizeHandler ( ): Void
PRIVATE EVENT HANDLERS -- Resize Handler -------------------------------------


_scrollHandler ( obj ): Void
-- Scroll Handler --------------------------------------


changeColorStyleInChildren ( sheetName : String, styleProp: String, newValue ): Void
-- Makes sure colors percolate to the list.


changeTextStyleInChildren ( styleProp: String ): Void



close ( ): Void



createChildren ( ): Void
-- Creation (children) ---------------------------------


dispatchChangeEvent ( obj, prevValue, newValue )



displayDropdown ( show: Boolean ): Void
-- Display Dropdown ------------------------------------


getDropdown ( ): Object
-- Creation (dropdown) -----------------------------------


getLabelField ( ): String
-- LabelField ------------------------------------------


getLabelFunction ( ): Function
-- Label Function -------------------------------------


hasDropdown ( ): Boolean
-- Has Dropdown ---------------------------------------


init ( ): Void
-- Creation (self)--------------------------------------


invalidateStyle ( styleProp: String ): Void
-- Invalidate Style -------------------------------------


keyDown ( e: Object ): Void
-- On Key Down ---------------------------------------


modelChanged ( eventObj: Object ): Void



notifyStyleChangeInChildren ( sheetName: String, styleProp: String, newValue ): Void



onDownArrow ( ): Void
::: PRIVATE METHODS -- On Down Arrow -------------------------------------


onKillFocus ( n ): Void



onUnload ( ): Void
-- Destructor ------------------------------------------


open ( ): Void



setDataProvider ( dp: Array )
-- Data Provider ---------------------------------------


setDropdownWidth ( w: Number ): Void
-- Dropdown Width -------------------------------------


setEditable ( e: Boolean ): Void
-- Editable ---------------------------------------------


setLabelField ( s: String ): Void



setRowCount ( count: Number ): Void
-- Row Count ------------------------------------------


setSelectedIndex ( v: Number ): Void
-- Selected Index -------------------------------------


setSelectedItem ( v ): Void
-- Selected Item --------------------------------------


setSize ( w: Number, h: Number, noEvent ): Void
::: PUBLIC METHODS -- Size ------------------------------------------------


tweenEndHide ( value : Number ): Void
-- Tween End (hide) -----------------------------------


tweenEndShow ( value: Number ): Void
-- Tween End (show) ----------------------------------

Methods inherited from class mx.controls.ComboBase

, _changeHandler, _enterHandler, _getValue, createChildren, draw, init, invalidateStyle, layoutChildren, onKillFocus, onSetFocus, setEditable, setEnabled, setFocus, setSize, setText, setTheme, size

Methods inherited from class mx.core.UIComponent

dispatchValueChangedEvent, enabledChanged, findFocusFromObject, findFocusInChildren, getFocus, getFocusManager, init, isParent, onKillFocus, onSetFocus, pressFocus, releaseFocus, setEnabled, setFocus, setVisible, size

Methods inherited from class mx.core.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, mergeClipParameters, move, redraw, setColor, setMinHeight, setMinWidth, setSize, setSkin, setVisible, size

Methods inherited from class MovieClip

attachAudio, attachMovie, beginFill, beginGradientFill, clear, createEmptyMovieClip, createTextField, curveTo, duplicateMovieClip, endFill, getBounds, getBytesLoaded, getBytesTotal, getDepth, getInstanceAtDepth, getNextHighestDepth, getSWFVersion, getTextSnapshot, getURL, globalToLocal, gotoAndPlay, gotoAndStop, hitTest, lineStyle, lineTo, loadMovie, loadVariables, localToGlobal, moveTo, nextFrame, onData, onDragOut, onDragOver, onEnterFrame, onKeyDown, onKeyUp, onKillFocus, onLoad, onMouseDown, onMouseMove, onMouseUp, onPress, onRelease, onReleaseOutside, onRollOut, onRollOver, onSetFocus, onUnload, play, prevFrame, removeMovieClip, setMask, startDrag, stop, stopDrag, swapDepths, unloadMovie, valueOf

Methods inherited from class Object

addProperty, hasOwnProperty, isPropertyEnumerable, isPrototypeOf, registerClass, toLocaleString, toString, unwatch, valueOf, watch



Field Documentation

__selectedIndexOnDropdown

var __selectedIndexOnDropdown: Number

_inherited_value

var _inherited_value: String

bInKeyDown

var bInKeyDown: Boolean

className

var className: String

initializing

var initializing

isPressed

var isPressed: Boolean

mergedClipParameters

static var mergedClipParameters: Boolean

owner

var owner: Object
used by button events

symbolName

static var symbolName: String
-- Initialization ----------------------------------------

symbolOwner

static var symbolOwner: Object

version

static var version: String
Copyright (C) 2003 Macromedia, Inc.

All Rights Reserved. The following is Sample Code and is subject to all restrictions on such code as contained in the End User License Agreement accompanying this product.


Property Documentation

dropdown

dropdown: Object (read-only)

dropdownWidth

dropdownWidth: Number (read, write)

labelField

labelField: String (read, write)

labelFunction

labelFunction: Function (read, write)

labels

labels: Array (read, write)

rowCount

rowCount: Number (read, write)

selectedLabel

selectedLabel: String (read-only)
::: PROTECTED METHODS -- Selected Label --------------------------------------


Constructor Documentation

ComboBox

function ComboBox()
-- Constructor -----------------------------------------


Method Documentation

_changeHandler

function _changeHandler(obj): Void
-- Change Handler ------------------------------------

Overrides:

_itemRollOutHandler

function _itemRollOutHandler(obj): Void
-- Item Roll Out Handler ------------------------------

_itemRollOverHandler

function _itemRollOverHandler(obj): Void
-- Item Roll Over Handler -----------------------------

_resizeHandler

function _resizeHandler(): Void
PRIVATE EVENT HANDLERS -- Resize Handler -------------------------------------

_scrollHandler

function _scrollHandler(obj): Void
-- Scroll Handler --------------------------------------

changeColorStyleInChildren

function changeColorStyleInChildren(sheetName : String,
 styleProp: String,
 newValue): Void
-- Makes sure colors percolate to the list.

-------------------------------------

Overrides:

changeTextStyleInChildren

function changeTextStyleInChildren(styleProp: String): Void
Overrides:

close

function close(): Void

createChildren

function createChildren(): Void
-- Creation (children) ---------------------------------

Overrides:

dispatchChangeEvent

function dispatchChangeEvent(obj,
 prevValue,
 newValue)

displayDropdown

function displayDropdown(show: Boolean): Void
-- Display Dropdown ------------------------------------

getDropdown

function getDropdown(): Object
-- Creation (dropdown) -----------------------------------

getLabelField

function getLabelField(): String
-- LabelField ------------------------------------------

getLabelFunction

function getLabelFunction(): Function
-- Label Function -------------------------------------

hasDropdown

function hasDropdown(): Boolean
-- Has Dropdown ---------------------------------------

init

function init(): Void
-- Creation (self)--------------------------------------

Overrides:

invalidateStyle

function invalidateStyle(styleProp: String): Void
-- Invalidate Style -------------------------------------

Overrides:

keyDown

function keyDown(e: Object): Void
-- On Key Down ---------------------------------------

modelChanged

function modelChanged(eventObj: Object): Void
Overrides:

notifyStyleChangeInChildren

function notifyStyleChangeInChildren(sheetName: String,
 styleProp: String,
 newValue): Void
Overrides:

onDownArrow

function onDownArrow(): Void
::: PRIVATE METHODS -- On Down Arrow -------------------------------------

Overrides:

onKillFocus

function onKillFocus(n): Void
Overrides:

onUnload

function onUnload(): Void
-- Destructor ------------------------------------------

Overrides:

open

function open(): Void

setDataProvider

function setDataProvider(dp: Array)
-- Data Provider ---------------------------------------

Overrides:

setDropdownWidth

function setDropdownWidth(w: Number): Void
-- Dropdown Width -------------------------------------

setEditable

function setEditable(e: Boolean): Void
-- Editable ---------------------------------------------

Overrides:

setLabelField

function setLabelField(s: String): Void

setRowCount

function setRowCount(count: Number): Void
-- Row Count ------------------------------------------

setSelectedIndex

function setSelectedIndex(v: Number): Void
-- Selected Index -------------------------------------

Overrides:

setSelectedItem

function setSelectedItem(v): Void
-- Selected Item --------------------------------------

Overrides:

setSize

function setSize(w: Number,
 h: Number,
 noEvent): Void
::: PUBLIC METHODS -- Size ------------------------------------------------

Overrides:

Parameters:
w
width of the object
h
height of the object
noEvent
if true, doesn't broadcast "resize" event

tweenEndHide

function tweenEndHide(value : Number): Void
-- Tween End (hide) -----------------------------------

tweenEndShow

function tweenEndShow(value: Number): Void
-- Tween End (show) ----------------------------------


The documentation was generated from the following file:


Copyright © 1997-2005 Macromedia, Inc. All rights reserved. Generated with AS2Doc