Class mx.managers.FocusManager

MovieClip
   +--mx.core.UIObject
      +--mx.core.UIComponent
         +--mx.managers.FocusManager

Description

Class for managing the focus on components. Each top-level window has a focus manager.

Field Index

__defaultPushButton, _firstNode, _firstObj, _foundList, _lastNode, _lastObj, _lastTarget, _lastx, _needPrev, _nextIsNext, _nextNode, _nextObj, _prevNode, _prevObj, _searchKey, activated, bDrawFocus, bNeedFocus, className, defaultPushButton, defaultPushButtonEnabled, defPushButton, form, initialized, lastFocus, lastMouse, lastSelFocus, lastTabFocus, nextTabIndex, symbolName, symbolOwner, tabCapture, UIObjectExtensionsDependency
Inherited from UIComponent
clipParameters, drawFocus, enabled, focusEnabled, focusManager, focusTextField, groupName, height, kStretch, mergedClipParameters, origBorderStyles, origBorderValues, popUp, symbolName, symbolOwner, tabEnabled, tabIndex, width
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, symbolName, symbolOwner, tabEnabled, textAlign, textColorList, textDecoration, textIndent, tfList, top, validateNow, visible, width, x, y
Inherited from 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

Method Index

new FocusManager()

_onMouseDown(), activate(), deactivate(), enabledChanged(), enableFocusManagement(), getActualFocus(), getFocus(), getFocusManagerFromObject(), getMaxTabIndex(), getMousedComponentFromChildren(), getNextTabIndex(), getSelectionFocus(), getTabCandidate(), getTabCandidateFromChildren(), handleEvent(), init(), isOurFocus(), mouseActivate(), onKeyDown(), onMouseUp(), onSetFocus(), onUnload(), relocate(), restoreFocus(), sendDefaultPushButtonEvent(), setFocus(), tabHandler(), walkTree()
Inherited from UIComponent
dispatchValueChangedEvent(), findFocusFromObject(), findFocusInChildren(), getFocusManager(), isParent(), onKillFocus(), pressFocus(), releaseFocus(), setEnabled(), setVisible(), size()
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(), initFromClipParameters(), invalidate(), invalidateStyle(), mergeClipParameters(), move(), redraw(), setColor(), setMinHeight(), setMinWidth(), setSize(), setSkin()
Inherited from 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(), onKeyUp(), onLoad(), onMouseDown(), onMouseMove(), onPress(), onRelease(), onReleaseOutside(), onRollOut(), onRollOver(), play(), prevFrame(), removeMovieClip(), setMask(), startDrag(), stop(), stopDrag(), swapDepths(), unloadMovie(), valueOf()

Constructor Detail

FocusManager

function FocusManager()

Field Detail

symbolName

static symbolName:String

symbolOwner

static symbolOwner:Object

className

className:String

bNeedFocus

bNeedFocus:Boolean

bDrawFocus

bDrawFocus:Boolean

form

form

lastFocus

lastFocus:Object

lastTabFocus

lastTabFocus:Object

lastSelFocus

lastSelFocus:Object

tabCapture

private tabCapture:MovieClip

_searchKey

private _searchKey:Number

_lastTarget

private _lastTarget:Object

_firstNode

private _firstNode:Object

_lastNode

private _lastNode:Object

_nextNode

private _nextNode:Object

_prevNode

private _prevNode:Object

_firstObj

private _firstObj:Object

_lastObj

private _lastObj:Object

_nextObj

private _nextObj:Object

_prevObj

private _prevObj:Object

_needPrev

private _needPrev:Boolean

_nextIsNext

private _nextIsNext:Boolean

_lastx

private _lastx:Object

_foundList

private _foundList:Object

lastMouse

lastMouse:Object

__defaultPushButton

__defaultPushButton:SimpleButton

defPushButton

defPushButton:SimpleButton

defaultPushButtonEnabled

defaultPushButtonEnabled:Boolean

activated

private activated:Boolean

defaultPushButton

defaultPushButton:SimpleButton
get or set the original default pushbutton. This may not be the actual button that is the default

nextTabIndex

nextTabIndex:Number [Read Only]
get the next unique tab index to use on this form

initialized

static initialized:Boolean

UIObjectExtensionsDependency

static UIObjectExtensionsDependency

Method Detail

getMaxTabIndex

function getMaxTabIndex(o:
UIComponent):Number
get the highest tab index currently used in this focus manager's form or subform
Parameters
o the form or subform
Return
Number the highest tab index currently used

getNextTabIndex

function getNextTabIndex(Void):
Number

relocate

function relocate(Void):Void

init

function init(Void):Void

enabledChanged

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

activate

function activate(Void):Void

deactivate

function deactivate(Void):Void

isOurFocus

function isOurFocus(o:
Object):Boolean

onSetFocus

function onSetFocus(o:
Object, n:Object):Void

restoreFocus

function restoreFocus(Void):Void

onUnload

function onUnload(Void):Void

setFocus

function setFocus(o:
Object):Void
set the focus to an object. Recommended instead of using Selection object
Parameters

getActualFocus

function getActualFocus(o:
Object):Object

getSelectionFocus

function getSelectionFocus():
Object

getFocus

function getFocus(Void):
Object
get the component that current has the focus. Recommended instead of using Selection object because it will tell you which component. Selection might return a subobject in that component
Return
the object that has focus @tiptext @helpid 3041

walkTree

function walkTree(p:
MovieClip, index:Number, groupName:String, dir:Boolean, lookup:Boolean, firstChild:Boolean):Void

getTabCandidate

function getTabCandidate(o:
MovieClip, index:Number, groupName:String, dir:Boolean, firstChild:Boolean):Void

getTabCandidateFromChildren

function getTabCandidateFromChildren(o:
MovieClip, index:Number, groupName:String, dir:Boolean, firstChild:Boolean):Void

getFocusManagerFromObject

function getFocusManagerFromObject(o:
Object):Object

tabHandler

function tabHandler(Void):Void

onKeyDown

function onKeyDown(Void):Void

sendDefaultPushButtonEvent

function sendDefaultPushButtonEvent(Void):Void
can be called to fake the system into thinking the enter key was pressed.

getMousedComponentFromChildren

function getMousedComponentFromChildren(x:
Number, y:Number, o:Object):Object

mouseActivate

function mouseActivate(Void):Void

_onMouseDown

function _onMouseDown(Void):Void

onMouseUp

function onMouseUp(Void):Void

handleEvent

function handleEvent(e:
Object)

enableFocusManagement

static function enableFocusManagement():Void