Package | feathers.core |
Interface | public interface IFocusManager extends IFeathersEventDispatcher |
Implementors | DefaultFocusManager |
Product Version : | Feathers 1.1.0 |
See also
Property | Defined By | ||
---|---|---|---|
focus : IFocusDisplayObject
The object that currently has focus. | IFocusManager | ||
isEnabled : Boolean
Determines if this focus manager is enabled. | IFocusManager | ||
root : DisplayObjectContainer [read-only]
The top-level container of the focus manager. | IFocusManager |
Event | Summary | Defined By | ||
---|---|---|---|---|
Dispatched when the value of the focus property changes. | IFocusManager |
focus | property |
focus:IFocusDisplayObject
The object that currently has focus. May return null
if
no object has focus.
In the following example, the focus is changed:
focusManager.focus = someObject;
public function get focus():IFocusDisplayObject
public function set focus(value:IFocusDisplayObject):void
isEnabled | property |
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.
public function get isEnabled():Boolean
public function set isEnabled(value:Boolean):void
root | property |
root:DisplayObjectContainer
[read-only] The top-level container of the focus manager. This isn't necessarily the root of the display list.
public function get root():DisplayObjectContainer
change | Event |
starling.events.Event
starling.events.Event.CHANGE
Dispatched when the value of the focus
property changes.
The properties of the event object have the following values:
Property | Value |
---|---|
bubbles | false |
currentTarget | The Object that defines the
event listener that handles the event. For example, if you use
myButton.addEventListener() to register an event listener,
myButton is the value of the currentTarget . |
data | null |
target | The Object that dispatched the event;
it is not always the Object listening for the event. Use the
currentTarget property to always access the Object
listening for the event. |
See also