|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.alee.managers.focus.FocusManager
public final class FocusManager
This manager allows you to track certain component their childs focus state by adding your custom FocusTracker or global focus listeners to track component focus state.
Constructor Summary | |
---|---|
FocusManager()
|
Method Summary | |
---|---|
static void |
addFocusTracker(java.awt.Component component,
FocusTracker focusTracker)
Registers focus tracker. |
static java.awt.Component |
getFocusOwner()
Returns currently focused component. |
static java.awt.Component |
getOldFocusOwner()
Returns previously focused component. |
static void |
initialize()
Initializes manager if it wasn't already initialized. |
static void |
registerGlobalFocusListener(GlobalFocusListener listener)
Registers global focus listener. |
static void |
removeFocusTracker(FocusTracker focusTracker)
Unregisters specified focus tracker. |
static void |
removeFocusTrackers(java.awt.Component component)
Unregisters all focus trackers from the specified component. |
static void |
unregisterGlobalFocusListener(GlobalFocusListener listener)
Unregisters global focus listener. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FocusManager()
Method Detail |
---|
public static void initialize()
public static java.awt.Component getFocusOwner()
public static java.awt.Component getOldFocusOwner()
public static void registerGlobalFocusListener(GlobalFocusListener listener)
listener
- new global focus listenerpublic static void unregisterGlobalFocusListener(GlobalFocusListener listener)
listener
- global focus listener to unregisterpublic static void addFocusTracker(java.awt.Component component, FocusTracker focusTracker)
focusTracker
- new focus trackerpublic static void removeFocusTracker(FocusTracker focusTracker)
focusTracker
- focus tracker to unregisterpublic static void removeFocusTrackers(java.awt.Component component)
component
- component to unregister all focus trackers from
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |