FocusManager

Kind of class:class
Inherits from:UIComponent < UIObject < MovieClip
Classpath:mx.managers.FocusManager
File last modified:Tuesday, 18 December 2007, 15:44:38
Class for managing the focus on components. Each top-level window has a focus manager.

Summary


Constructor
Class properties
Instance properties
Class methods
Class methods inherited from UIObject
Instance methods
Event handlers
Event handlers inherited from UIComponent

Constructor

FocusManager

function FocusManager (
)

Class properties

initialized

static initialized:Boolean = false
(read)

symbolName

static symbolName:String = "FocusManager"
(read)

symbolOwner

static symbolOwner:Object = mx.managers.FocusManager
(read)

UIObjectExtensionsDependency

static UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions
(read)

version

static version:String = "2.0.2.127"
(read)

Instance properties

__defaultPushButton

__defaultPushButton:SimpleButton
(read)

_firstNode

private _firstNode:Object
(read)

_firstObj

private _firstObj:Object
(read)

_foundList

private _foundList:Object
(read)

_lastNode

private _lastNode:Object
(read)

_lastObj

private _lastObj:Object
(read)

_lastTarget

private _lastTarget:Object
(read)

_lastx

private _lastx:Object
(read)

_needPrev

private _needPrev:Boolean
(read)

_nextIsNext

private _nextIsNext:Boolean
(read)

_nextNode

private _nextNode:Object
(read)

_nextObj

private _nextObj:Object
(read)

_prevNode

private _prevNode:Object
(read)

_prevObj

private _prevObj:Object
(read)

_searchKey

private _searchKey:Number
(read)

activated

private activated:Boolean = true
(read)

bDrawFocus

bDrawFocus:Boolean = false
(read)

bNeedFocus

bNeedFocus:Boolean = false
(read)

className

className:String = "FocusManager"
(read)

name of this class

defaultPushButton

defaultPushButton:SimpleButton
(read,write)

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

defaultPushButtonEnabled

defaultPushButtonEnabled:Boolean = true
(read)

defPushButton

defPushButton:SimpleButton
(read)

form

form
(read)

lastFocus

lastFocus:Object
(read)

lastMouse

lastMouse:Object
(read)

lastSelFocus

lastSelFocus:Object
(read)

lastTabFocus

lastTabFocus:Object
(read)

nextTabIndex

nextTabIndex:Number
(read)

get the next unique tab index to use on this form

tabCapture

private tabCapture:MovieClip
(read)

Class methods

enableFocusManagement

static function enableFocusManagement (
) : Void

Instance methods

_onMouseDown

function _onMouseDown (
Void) : Void

activate

function activate (
Void) : Void

deactivate

function deactivate (
Void) : Void

enabledChanged

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

getActualFocus

function getActualFocus (
o:Object) : 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
Returns:
  • the object that has focus

getFocusManagerFromObject

function getFocusManagerFromObject (
o:Object) : Object

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
Returns:
  • Number the highest tab index currently used

getMousedComponentFromChildren

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

getNextTabIndex

function getNextTabIndex (
Void) : Number

getSelectionFocus

function getSelectionFocus (
) : Object

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

handleEvent

function handleEvent (
e:Object)

init

function init (
Void) : Void

isOurFocus

function isOurFocus (
o:Object) : Boolean

mouseActivate

function mouseActivate (
Void) : Void

relocate

function relocate (
Void) : Void

restoreFocus

function restoreFocus (
Void) : Void

sendDefaultPushButtonEvent

function sendDefaultPushButtonEvent (
Void) : Void

can be called to fake the system into thinking the enter key was pressed.

setFocus

function setFocus (
o:Object) : Void

set the focus to an object. Recommended instead of using Selection object
Parameters:
the:
object to receive focus

tabHandler

function tabHandler (
Void) : Void

walkTree

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

Event handlers

onKeyDown

function onKeyDown (
Void) : Void

onMouseUp

function onMouseUp (
Void) : Void

onSetFocus

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

onUnload

function onUnload (
Void) : Void