|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbibliothek.gui.dock.control.focus.FocusTracker
public class FocusTracker
A focus tracker keeps information about the last focused Component
of some Container.
| Constructor Summary | |
|---|---|
FocusTracker(java.awt.Component root)
Creates a new focus tracker. |
|
| Method Summary | |
|---|---|
protected void |
add(java.awt.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. |
java.awt.Component |
getLastFocused()
Gets the last component that was focused |
protected void |
remove(java.awt.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(java.awt.Component root)
root - the root container whose children can be focused| Method Detail |
|---|
public void destroy()
FocusTracker added anywhere allowing this FocusTracker
to be collected by the garbage collector.
public java.awt.Component getLastFocused()
null, will be a child of the root container or the root
container itselfprotected void add(java.awt.Component component)
component and its children to track the focus.
component - the component and its children to trackprotected void remove(java.awt.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 | |||||||||