Main Page | Packages | Class Tree | Index | Help

mx.controls

class ComboBase

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

All Known Subclasses: ComboBox, DateField

class ComboBase
extends UIComponent

ComboBase EXTENDS UIComponent ComboBase consists of a dataProvider, a textfield and a button.

The dataProvider and its API come courtesy of DataSelector. Subclasses can add a data picker (such as a pulldown).



Field Summary


__border: RectBorder



__dataProvider: Object
END TIPTEXT BLOCK


calcPreferredHeightFromData: Function



calcPreferredWidthFromData: Function



clearSelected: Function



getDataProvider: Function



getLength: Function



getSelectedIndex: Function



getSelectedIndices: Function



getSelectedItem: Function



getSelectedItems: Function



getValue: Function
Functions Mixed in from DataSelector ::: SELECTION METHODS


isSelected: Function


static
mixIt1: Boolean
Initialize our class to "inherit" DataSelector methods.


modelChanged: Function



multipleSelection: Boolean



oldOnKillFocus: Function



oldOnSetFocus: Function



onDownArrow: Function



selected: Object



selectedIndex: Number



selectedIndices: Array



selectedItem



selectedItems: Array



selectItem: Function



setDataProvider: Function
mixins from DataSelector


setSelectedIndex: Function



setSelectedIndices: Function



setSelectedItem: Function


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

static
symbolOwner: Object



value: Object


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


wrapDownArrowButton: Boolean


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


editable: Boolean (read, write)
true if the component is editable


restrict: String (read, write)
List of characters to allow.


tabIndex: Number (read, write)
tab order when using tab key to navigate


text: String (read, write)



textField (read-only)


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


ComboBase ( )
-- Constructor -----------------------------------------

Method Summary


( var DSgetValue: Function = DataSelector.prototype.getValue;, //, //, REPLACE, /**, *, *, */, var dataProvider : Object;, /**, *, *, *, *, *, *, *, */, var addItemAt : Function;, /**, *, *, *, *, *, *, */, var addItem : Function;, /**, *, *, *, *, *, */, var removeItemAt : Function;, /**, *, *, */, var removeAll : Function;, /**, *, *, *, *, *, *, */, var replaceItemAt : Function;, /**, *, *, *, *, *, */, var sortItemsBy : Function;, /**, *, *, *, *, */, var sortItems : Function;, /**, *, *, */, var length : Number;, /**, *, *, *, *, *, */, var getItemAt : Function;, /**, *, * )
Set ourselves up as a data selector.


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


_enterHandler ( obj ): Void
-- Enter Handler ---------------------------------------


_getValue ( )
-- Value -----------------------------------------------


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


draw ( ): Void
-- Draw ------------------------------------------------ ** 9) create an draw method.


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


invalidateStyle ( ): Void
::: PRIVATE METHODS -- Invalidate Style -------------------------------------


layoutChildren ( w: Number, h: Number ): Void



onKillFocus ( ): Void



onSetFocus ( ): Void



setEditable ( e: Boolean ): Void
-- Editable --------------------------------------------- regsiter the editable setter with a proxy function to avoid a bug in Player 6.0 that doesn't allow overrides of getters and setters


setEnabled ( enabledFlag: Boolean ): Void
-- Enabled ---------------------------------------------


setFocus ( ): Void
::: PUBLIC METHODS


setSize ( w: Number, h: Number, noEvent ): Void
size the object


setText ( t: String ): Void



setTheme ( t: String ): Void
-- Theme ---------------------------------------------- ** 11) create a setTheme function


size ( ): Void
-- Size ------------------------------------------------- ** 10) replace your setSize with an size() stretches the track, creates + positions arrows

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

__border

var __border: RectBorder

__dataProvider

var __dataProvider: Object
END TIPTEXT BLOCK

calcPreferredHeightFromData

var calcPreferredHeightFromData: Function

calcPreferredWidthFromData

var calcPreferredWidthFromData: Function

clearSelected

var clearSelected: Function

getDataProvider

var getDataProvider: Function

getLength

var getLength: Function

getSelectedIndex

var getSelectedIndex: Function

getSelectedIndices

var getSelectedIndices: Function

getSelectedItem

var getSelectedItem: Function

getSelectedItems

var getSelectedItems: Function

getValue

var getValue: Function
Functions Mixed in from DataSelector ::: SELECTION METHODS

isSelected

var isSelected: Function

mixIt1

static var mixIt1: Boolean
Initialize our class to "inherit" DataSelector methods.

modelChanged

var modelChanged: Function

multipleSelection

var multipleSelection: Boolean

oldOnKillFocus

var oldOnKillFocus: Function

oldOnSetFocus

var oldOnSetFocus: Function

onDownArrow

var onDownArrow: Function

selected

var selected: Object

selectedIndex

var selectedIndex: Number

selectedIndices

var selectedIndices: Array

selectedItem

var selectedItem

selectedItems

var selectedItems: Array

selectItem

var selectItem: Function

setDataProvider

var setDataProvider: Function
mixins from DataSelector

setSelectedIndex

var setSelectedIndex: Function

setSelectedIndices

var setSelectedIndices: Function

setSelectedItem

var setSelectedItem: Function

symbolName

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

symbolOwner

static var symbolOwner: Object

value

var value: 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.

wrapDownArrowButton

var wrapDownArrowButton: Boolean

Property Documentation

editable

editable: Boolean (read, write)
true if the component is editable

restrict

restrict: String (read, write)
List of characters to allow.

tabIndex

tabIndex: Number (read, write)
tab order when using tab key to navigate

text

text: String (read, write)

textField

textField (read-only)

Constructor Documentation

ComboBase

function ComboBase()
-- Constructor -----------------------------------------


Method Documentation

function (var DSgetValue: Function = DataSelector.prototype.getValue;,
 //,
 //,
 REPLACE,
 /**,
 *,
 *,
 */,
 var dataProvider : Object;,
 /**,
 *,
 *,
 *,
 *,
 *,
 *,
 *,
 */,
 var addItemAt : Function;,
 /**,
 *,
 *,
 *,
 *,
 *,
 *,
 */,
 var addItem : Function;,
 /**,
 *,
 *,
 *,
 *,
 *,
 */,
 var removeItemAt : Function;,
 /**,
 *,
 *,
 */,
 var removeAll : Function;,
 /**,
 *,
 *,
 *,
 *,
 *,
 *,
 */,
 var replaceItemAt : Function;,
 /**,
 *,
 *,
 *,
 *,
 *,
 */,
 var sortItemsBy : Function;,
 /**,
 *,
 *,
 *,
 *,
 */,
 var sortItems : Function;,
 /**,
 *,
 *,
 */,
 var length : Number;,
 /**,
 *,
 *,
 *,
 *,
 *,
 */,
 var getItemAt : Function;,
 /**,
 *,
 *)
Set ourselves up as a data selector.

_changeHandler

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

_enterHandler

function _enterHandler(obj): Void
-- Enter Handler ---------------------------------------

_getValue

function _getValue()
-- Value -----------------------------------------------

createChildren

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

Overrides:

draw

function draw(): Void
-- Draw ------------------------------------------------ ** 9) create an draw method.

Most of the time, all you'll need to do is force a layout of your objects

Overrides:

init

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

Overrides:

invalidateStyle

function invalidateStyle(): Void
::: PRIVATE METHODS -- Invalidate Style -------------------------------------

Overrides:

layoutChildren

function layoutChildren(w: Number,
 h: Number): Void

onKillFocus

function onKillFocus(): Void
Overrides:

onSetFocus

function onSetFocus(): Void
Overrides:

setEditable

function setEditable(e: Boolean): Void
-- Editable --------------------------------------------- regsiter the editable setter with a proxy function to avoid a bug in Player 6.0 that doesn't allow overrides of getters and setters

setEnabled

function setEnabled(enabledFlag: Boolean): Void
-- Enabled ---------------------------------------------

Overrides:

setFocus

function setFocus(): Void
::: PUBLIC METHODS

Overrides:

setSize

function setSize(w: Number,
 h: Number,
 noEvent): Void
size the object

Overrides:

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

setText

function setText(t: String): Void

setTheme

function setTheme(t: String): Void
-- Theme ---------------------------------------------- ** 11) create a setTheme function

size

function size(): Void
-- Size ------------------------------------------------- ** 10) replace your setSize with an size() stretches the track, creates + positions arrows

Overrides:


The documentation was generated from the following file:


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