public class FocusManager extends Object
| Modifier and Type | Method and Description |
|---|---|
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 widget.
|
static FocusManager |
get()
Returns the singleton instance.
|
boolean |
isEnabled() |
boolean |
isInsertExitFocusElement() |
boolean |
isManaged()
Returns true if focus manager is managed.
|
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.
|
public static FocusManager get()
public void disable()
public void enable()
public NavigationHandler findNavigationHandler(Component comp)
comp - the target widgetpublic boolean isInsertExitFocusElement()
public boolean isManaged()
public boolean isEnabled()
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 handlerCopyright © 2012. All Rights Reserved.