|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bibliothek.gui.dock.control.focus.FocusTracker
public class FocusTracker
A focus tracker keeps information about the last focused Component
of some Container
.
Constructor Summary | |
---|---|
FocusTracker(Component root)
Creates a new focus tracker. |
Method Summary | |
---|---|
protected void |
add(Component component)
Adds listeners to component and its children to track the focus. |
void |
destroy()
Removes any listeners this FocusTracker added anywhere allowing this FocusTracker
to be collected by the garbage collector. |
Component |
getLastFocused()
Gets the last component that was focused |
protected void |
remove(Component component)
Removes listeners from component and its children. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FocusTracker(Component root)
root
- the root container whose children can be focusedMethod Detail |
---|
public void destroy()
FocusTracker
added anywhere allowing this FocusTracker
to be collected by the garbage collector.
public Component getLastFocused()
null
, will be a child of the root container or the root
container itselfprotected void add(Component component)
component
and its children to track the focus.
component
- the component and its children to trackprotected void remove(Component component)
component
and its children.
component
- the component to remove
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |