|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.extjs.gxt.ui.client.aria.FocusManager
public class FocusManager
The FocusManager is used to control keyboard navigation among and within components.
Field Summary | |
---|---|
static EventType |
TabNext
The TabNext event type. |
static EventType |
TabPrevious
The TabPrevious event type. |
Method Summary | |
---|---|
void |
disable()
Disables the focus manager. |
void |
enable()
Enables the focus manager. |
NavigationHandler |
findNavigationHandler(Component comp)
Returns the first matching navigation handler given the target component. |
static FocusManager |
get()
Returns the singleton instance. |
protected void |
initHandlers()
|
boolean |
isInsertExitFocusElement()
|
boolean |
isManaged()
Returns true if focus manager is managed. |
protected void |
onToggle(Component c,
PreviewEvent pe)
|
void |
register(FocusHandler handler)
Registers a focus handler. |
void |
register(NavigationHandler handler)
Registers a navigation handler. |
void |
setInsertExitFocusElement(boolean insertExitFocusElement)
True to insert a dummy element to allow the user to tab out of the application (defaults to true). |
void |
setManaged(boolean managed)
True to let focus manager control navigation keys, false to use natural tab indexes (defaults to true). |
void |
unregister(FocusHandler handler)
Unregisters a focus handler. |
void |
unregister(NavigationHandler handler)
Unregisters a navigation handler. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final EventType TabNext
public static final EventType TabPrevious
Method Detail |
---|
public static FocusManager get()
public void disable()
public void enable()
public NavigationHandler findNavigationHandler(Component comp)
comp
- the target component
public boolean isInsertExitFocusElement()
public boolean isManaged()
public void register(FocusHandler handler)
handler
- the handlerpublic void register(NavigationHandler handler)
handler
- the handlerpublic void setInsertExitFocusElement(boolean insertExitFocusElement)
insertExitFocusElement
- true to insert exit elementpublic void setManaged(boolean managed)
managed
- true if managedpublic void unregister(FocusHandler handler)
handler
- the focus handlerpublic void unregister(NavigationHandler handler)
handler
- the navigation handlerprotected void initHandlers()
protected void onToggle(Component c, PreviewEvent pe)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |