|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbibliothek.gui.dock.control.focus.DefaultFocusHistory
public class DefaultFocusHistory
The default implementation of FocusHistory
adds listeners to a
DockController
to keep the history up to date. Only Dockable
s that
are actually registered at the controller are reported in the history
Constructor Summary | |
---|---|
DefaultFocusHistory()
|
Method Summary | |
---|---|
Dockable |
getFirst(Filter<Dockable> filter)
Traverses the history in reverse and returns the first Dockable matching filter . |
Dockable[] |
getHistory()
Gets an array containing all known Dockable s which did have the focus. |
Dockable |
getNewestOn(DockStation... parents)
Searches the one Dockable that had the focus lately, and that is a child of one
of parent . |
void |
setController(DockController controller)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultFocusHistory()
Method Detail |
---|
public void setController(DockController controller)
public Dockable[] getHistory()
FocusHistory
Dockable
s which did have the focus. The first element in the array
is the did not have the focus for the longest time, while the last element in the array is the element that
may have the focus right now.
getHistory
in interface FocusHistory
public Dockable getNewestOn(DockStation... parents)
FocusHistory
Dockable
that had the focus lately, and that is a child of one
of parent
.
getNewestOn
in interface FocusHistory
parents
- the stations whose child is searched
Dockable
that had the focus and which is a child of one of the parents, or
null
if no such Dockable
can be foundpublic Dockable getFirst(Filter<Dockable> filter)
FocusHistory
history
in reverse and returns the first Dockable
matching filter
.
getFirst
in interface FocusHistory
filter
- the filter to apply, not null
Dockable
having focus and matching filter
, or null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |