Repository navigation
Expand file tree
/
Copy pathIFocusDisplayObject.as
More file actions
106 lines (94 loc) · 2.89 KB
/
Copy pathIFocusDisplayObject.as
File metadata and controls
106 lines (94 loc) · 2.89 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
/*
Feathers
Copyright 2012-2013 Joshua Tynjala. 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
{
/**
* Dispatched when the display object receives focus.
*
* @eventType feathers.events.FeathersEventType.FOCUS_IN
*/
[Event(name="focusIn",type="starling.events.Event")]
/**
* Dispatched when the display object loses focus.
*
* @eventType feathers.events.FeathersEventType.FOCUS_OUT
*/
[Event(name="focusOut",type="starling.events.Event")]
/**
* A component that can receive focus.
*
* @see feathers.core.IFocusManager
*/
public interface IFocusDisplayObject extends IFeathersDisplayObject
{
/**
* The current focus manager for this component.
*/
function get focusManager():IFocusManager;
/**
* @private
*/
function set focusManager(value:IFocusManager):void;
/**
* Determines if this component can receive focus.
*/
function get isFocusEnabled():Boolean;
/**
* @private
*/
function set isFocusEnabled(value:Boolean):void;
/**
* The next object that will receive focus when the tab key is pressed.
* If <code>null</code>, defaults to the next child on the display list.
*/
function get nextTabFocus():IFocusDisplayObject;
/**
* @private
*/
function set nextTabFocus(value:IFocusDisplayObject):void;
/**
* The previous object that will receive focus when the tab key is
* pressed while holding shift. If <code>null</code>, defaults to the
* previous child on the display list.
*/
function get previousTabFocus():IFocusDisplayObject;
/**
* @private
*/
function set previousTabFocus(value:IFocusDisplayObject):void;
/**
* If the object has focus, an additional visual indicator may
* optionally be displayed to highlight the object. Calling this
* function may have no effect. It's merely a suggestion to the object.
*
* <p><strong>Important:</strong> This function will not give focus to
* the display object if it doesn't have focus. To give focus to the
* display object, you should set the <code>focus</code> property on
* the focus manager.</p>
*
* <listing version="3.0">
* object.focusManager.focus = object;</listing>
*
* @see #hideFocus()
* @see feathers.core.IFocusManager#focus
*/
function showFocus():void;
/**
* If the visual indicator of focus has been displayed by
* <code>showFocus()</code>, call this function to hide it.
*
* <p><strong>Important:</strong> This function will not clear focus
* from the display object if it has focus. To clear focus from the
* display object, you should set the <code>focus</code> property on
* the focus manager to <code>null</code> or another display object.</p>
*
* @see #showFocus()
* @see feathers.core.IFocusManager#focus
*/
function hideFocus():void;
}
}