- Top
- Summary
- Constructors
- Class properties
- Instance properties
- Class methods
- Instance methods
- Event handlers
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
- symbolName : String
- symbolOwner : Object
- version : String
- initialized : Boolean
- UIObjectExtensionsDependency
Class properties inherited from UIComponent
Class properties inherited from UIObject
Instance properties
- className : String
- name of this class
- bNeedFocus : Boolean
- bDrawFocus : Boolean
- form
- lastFocus : Object
- lastTabFocus : Object
- lastSelFocus : Object
- tabCapture : MovieClip
- _searchKey : Number
- _lastTarget : Object
- _firstNode : Object
- _lastNode : Object
- _nextNode : Object
- _prevNode : Object
- _firstObj : Object
- _lastObj : Object
- _nextObj : Object
- _prevObj : Object
- _needPrev : Boolean
- _nextIsNext : Boolean
- _lastx : Object
- _foundList : Object
- lastMouse : Object
- __defaultPushButton : SimpleButton
- defPushButton : SimpleButton
- defaultPushButtonEnabled : Boolean
- activated : Boolean
- defaultPushButton : SimpleButton
- get or set the original default pushbutton.
- nextTabIndex : Number
- get the next unique tab index to use on this form
Instance properties inherited from UIComponent
Instance properties 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 tabEnabled textAlign textDecoration textIndent tfList top validateNow visible width x y
Instance methods
- getMaxTabIndex (o:UIComponent) : Number
- get the highest tab index currently used in this focus manager's form or subform
- getNextTabIndex (Void) : Number
- relocate (Void) : Void
- init (Void) : Void
- enabledChanged (id:String, oldValue:Boolean, newValue:Boolean) : Boolean
- activate (Void) : Void
- deactivate (Void) : Void
- isOurFocus (o:Object) : Boolean
- restoreFocus (Void) : Void
- setFocus (o:Object) : Void
- set the focus to an object.
- getActualFocus (o:Object) : Object
- getSelectionFocus : Object
- getFocus (Void) : Object
- get the component that current has the focus.
- walkTree (p:MovieClip, index:Number, groupName:String, dir:Boolean, lookup:Boolean, firstChild:Boolean) : Void
- getTabCandidate (o:MovieClip, index:Number, groupName:String, dir:Boolean, firstChild:Boolean) : Void
- getTabCandidateFromChildren (o:MovieClip, index:Number, groupName:String, dir:Boolean, firstChild:Boolean) : Void
- getFocusManagerFromObject (o:Object) : Object
- tabHandler (Void) : Void
- sendDefaultPushButtonEvent (Void) : Void
- can be called to fake the system into thinking the enter key was pressed.
- getMousedComponentFromChildren (x:Number, y:Number, o:Object) : Object
- mouseActivate (Void) : Void
- _onMouseDown (Void) : Void
- handleEvent (e:Object)
Instance methods 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 init initFromClipParameters invalidate invalidateStyle move redraw setColor setMinHeight setMinWidth setSize setSkin setVisible size
Event handlers
- onSetFocus (o:Object, n:Object) : Void
- onUnload (Void) : Void
- onKeyDown (Void) : Void
- onMouseUp (Void) : Void
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
_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
get or set the original default pushbutton. This may not be the actual button that is the default
defaultPushButtonEnabled
defaultPushButtonEnabled:Boolean = true
(read)
defPushButton
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
Overrides:
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
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
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)
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