Main Page | Packages | Class Tree | Index | Help

mx.core

class UIComponent

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

All Known Subclasses: AlertForm, CalendarLayout, CheckCellRenderer, ComboBase, DateChooser, FocusManager, MediaController, MediaDisplay, MediaPlayback, MenuBar, MenuBarItem, NumericStepper, ScrollBar, SelectableRow, SimpleButton, TextInput, View

class UIComponent
extends UIObject

UIComponent class - extends UIObject - Adds focus, enabling - Resizes by sizing and positioning internal components



Field Summary


clipParameters: Object



drawFocus: Function
draw focus on the object.


enabled: Boolean



focusEnabled: Boolean
UIComponents can receive focus from mouse clicks as well as tabbing


focusManager: MovieClip
top-level windows have a focusManager instance.


focusTextField: Object
Components that contain a TextField must set a pointer to that TextField.


groupName: String
RadioButtons and other grouped controls use this property

static
kStretch: Number
number used to imply stretchability in preferredWidth/Height

static
mergedClipParameters: Boolean



origBorderStyles: Object
the original border colors for a component showing an error state


origBorderValues: Object



popUp: Boolean
set by FPopUp to indicate that component is a popup window

static
symbolName: String


static
symbolOwner: Object



tabEnabled: Boolean



tabIndex: Number


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

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


height: Number (read-only)
height of object


width: Number (read-only)
width of object

Properties inherited from class mx.core.UIObject

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

Constructor


UIComponent ( )


Method Summary


dispatchValueChangedEvent ( value ): Void



enabledChanged ( id: String, oldValue: Boolean, newValue: Boolean ): Boolean



findFocusFromObject ( o: Object ): Object
either this object should get focus or if it is in a container, a textfield in that container could get focus or look at the parent


findFocusInChildren ( o: Object ): Object
find the child object that should get the Selection focus


getFocus ( ): Object
Gets the object that has the focus.


getFocusManager ( ): Object
Get the current focusManager.


init ( ): Void



isParent ( o: Object ): Boolean



onKillFocus ( newFocus: Object ): Void



onSetFocus ( oldFocus: Object ): Void



pressFocus ( ): Void



releaseFocus ( ): Void



setEnabled ( enabled: Boolean ): Void



setFocus ( ): Void
Sets the focus to this object.


setVisible ( x: Boolean, noEvent: Boolean ): Void



size ( ): Void


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

clipParameters

var clipParameters: Object

drawFocus

var drawFocus: Function
draw focus on the object.

Actually implemented in the theme.

enabled

var enabled: Boolean

focusEnabled

var focusEnabled: Boolean
UIComponents can receive focus from mouse clicks as well as tabbing

focusManager

var focusManager: MovieClip
top-level windows have a focusManager instance.

Other windows and components should use getFocusManager() to find the focusManager that is responsible for that component.

focusTextField

var focusTextField: Object
Components that contain a TextField must set a pointer to that TextField.

groupName

var groupName: String
RadioButtons and other grouped controls use this property

kStretch

static var kStretch: Number
number used to imply stretchability in preferredWidth/Height

mergedClipParameters

static var mergedClipParameters: Boolean

origBorderStyles

var origBorderStyles: Object
the original border colors for a component showing an error state

origBorderValues

var origBorderValues: Object

popUp

var popUp: Boolean
set by FPopUp to indicate that component is a popup window

symbolName

static var symbolName: String

symbolOwner

static var symbolOwner: Object

tabEnabled

var tabEnabled: Boolean

tabIndex

var tabIndex: Number

version

static var version: String
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

height

height: Number (read-only)
height of object

Overrides:

width

width: Number (read-only)
width of object

Overrides:


Constructor Documentation

UIComponent

function UIComponent()

Method Documentation

dispatchValueChangedEvent

function dispatchValueChangedEvent(value): Void

enabledChanged

function enabledChanged(id: String,
 oldValue: Boolean,
 newValue: Boolean): Boolean

findFocusFromObject

function findFocusFromObject(o: Object): Object
either this object should get focus or if it is in a container, a textfield in that container could get focus or look at the parent

findFocusInChildren

function findFocusInChildren(o: Object): Object
find the child object that should get the Selection focus

getFocus

function getFocus(): Object
Gets the object that has the focus.

It may not be this object. This is just here as a convenience

Returns:
Object The object that has the focus

getFocusManager

function getFocusManager(): Object
Get the current focusManager.

init

function init(): Void
Overrides:

isParent

function isParent(o: Object): Boolean

onKillFocus

function onKillFocus(newFocus: Object): Void
Overrides:

onSetFocus

function onSetFocus(oldFocus: Object): Void
Overrides:

pressFocus

function pressFocus(): Void

releaseFocus

function releaseFocus(): Void

setEnabled

function setEnabled(enabled: Boolean): Void

setFocus

function setFocus(): Void
Sets the focus to this object.

setVisible

function setVisible(x: Boolean,
 noEvent: Boolean): Void
Overrides:

size

function size(): Void
Overrides:


The documentation was generated from the following file:


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