GODPAPER | All Packages | All Classes | Index | Frames No Frames |
FocusManager

Package | feathers.core
Class | public class FocusManager
Inheritance | FocusManager Object
Implements | IFocusManager

Manages touch and keyboard focus.

Public Properties

| Property | Defined By
--- | --- | ---
|  | focus : IFocusDisplayObject The object that currently has focus. | FocusManager
|  | isEnabled : Boolean Determines if this focus manager is enabled. | FocusManager

Public Methods

| Method | Defined By
--- | --- | ---
|  | FocusManager(topLevelContainer:DisplayObjectContainer = null, enableImmediately:Boolean = true) Constructor. | FocusManager
|  | popFocusManager():void [static] Removes the top-most focus manager from the stack and returns exclusive focus to the manager below it. | FocusManager
|  | pushFocusManager(manager:IFocusManager = null):IFocusManager [static] Adds a focus manager to the stack, and gives it exclusive focus. | FocusManager
|  | removeFocusManager(manager:IFocusManager):void [static] Removes the specified focus manager from the stack. | FocusManager

Property Detail

focus | property

`focus:IFocusDisplayObject`

The object that currently has focus. May be `null` if no object has focus.

Implementation
`public function get focus():IFocusDisplayObject`
`public function set focus(value:IFocusDisplayObject):void`

isEnabled | property |

`public var isEnabled:Boolean`

Determines if this focus manager is enabled. A focus manager may be disabled when another focus manager has control, such as when a modal pop-up is displayed.

Constructor Detail

FocusManager | () | Constructor

`public function FocusManager(topLevelContainer:DisplayObjectContainer = null, enableImmediately:Boolean = true)`

Constructor.

Parameters

| `topLevelContainer:DisplayObjectContainer` (default = `null`)``
| `enableImmediately:Boolean` (default = `true`)``

Method Detail

popFocusManager | () | method

`public static function popFocusManager():void`

Removes the top-most focus manager from the stack and returns exclusive focus to the manager below it.

pushFocusManager | () | method |

`public static function pushFocusManager(manager:IFocusManager = null):IFocusManager`

Adds a focus manager to the stack, and gives it exclusive focus.

Parameters

| `manager:IFocusManager` (default = `null`)``

Returns

| `IFocusManager`

removeFocusManager | () | method |

`public static function removeFocusManager(manager:IFocusManager):void`

Removes the specified focus manager from the stack. If it was the top-most focus manager, the new top-most focus manager is enabled,

Parameters

| `manager:IFocusManager`

Thu Jan 16 2014, 01:11 PM +08:00