Echo.FocusManager
Constructor Summary | |
---|---|
Public | Echo.FocusManager() Focus management handler for a specific application instance. |
Instance Field Summary | |
---|---|
Internal | _application The managed application. |
Instance Method Summary | |
---|---|
Public | find() Searches the component hierarchy for the next component that should be focused (based on the currently focused component). |
Public | findInParent() Finds next (or previous) focusable descendant of a parent component. |
Internal | _getDescendantIndex() Determines the index of the child of parent in which
descendant is contained.
|
the
(Echo.Application)
- managed applicationminimumDistance
property may be used to skip a number of siblings.
This is used by components such as "Grid" which may want to find a focusable component
in the next row, skipping over all columns of the current row.
If omitted the default value of this property is 1. As an example, a value of 2
would skip the immediately adjacent sibling of the current focused component.
parentComponent
(Echo.Component)
- the parent component to searchreverse
(Boolean)
- the search direction, false indicating to search forward, true
indicating reverseminimumDistance
(Number)
- the fewest number of lateral focus moves to make before
returning a focusable component (optional, default value of 1)parent
in which
descendant
is contained.
parent
(Echo.Component)
- the parent componentdescendant
(Echo.Component)
- the descendant componentparent