-
Notifications
You must be signed in to change notification settings - Fork 380
Expand file tree
/
Copy pathIFocusManager.as
More file actions
83 lines (75 loc) · 2.47 KB
/
IFocusManager.as
File metadata and controls
83 lines (75 loc) · 2.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
/*
Feathers
Copyright 2012-2021 Bowler Hat LLC. All Rights Reserved.
This program is free software. You can redistribute and/or modify it in
accordance with the terms of the accompanying license agreement.
*/
package feathers.core
{
import feathers.core.IFeathersEventDispatcher;
import starling.display.DisplayObjectContainer;
/**
* Dispatched when the value of the <code>focus</code> property changes.
*
* <p>The properties of the event object have the following values:</p>
* <table class="innertable">
* <tr><th>Property</th><th>Value</th></tr>
* <tr><td><code>bubbles</code></td><td>false</td></tr>
* <tr><td><code>currentTarget</code></td><td>The Object that defines the
* event listener that handles the event. For example, if you use
* <code>myButton.addEventListener()</code> to register an event listener,
* myButton is the value of the <code>currentTarget</code>.</td></tr>
* <tr><td><code>data</code></td><td>null</td></tr>
* <tr><td><code>target</code></td><td>The Object that dispatched the event;
* it is not always the Object listening for the event. Use the
* <code>currentTarget</code> property to always access the Object
* listening for the event.</td></tr>
* </table>
*
* @eventType starling.events.Event.CHANGE
*
* @see #focus
*/
[Event(name="change",type="starling.events.Event")]
/**
* Interface for focus management.
*
* @see ../../../help/focus.html Keyboard focus management in Feathers
* @see feathers.core.FocusManager
* @see feathers.core.IFocusDisplayObject
*
* @productversion Feathers 1.1.0
*/
public interface IFocusManager extends IFeathersEventDispatcher
{
/**
* 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.
*/
function get isEnabled():Boolean;
/**
* @private
*/
function set isEnabled(value:Boolean):void;
/**
* The object that currently has focus. May return <code>null</code> if
* no object has focus.
*
* <p>In the following example, the focus is changed:</p>
*
* <listing version="3.0">
* focusManager.focus = someObject;</listing>
*/
function get focus():IFocusDisplayObject;
/**
* @private
*/
function set focus(value:IFocusDisplayObject):void;
/**
* The top-level container of the focus manager. This isn't necessarily
* the root of the display list.
*/
function get root():DisplayObjectContainer;
}
}