bibliothek.gui.dock.control.focus
Interface FocusHistory

All Known Implementing Classes:
DefaultFocusHistory

public interface FocusHistory

This interface tells the order in which the Dockables got the focus.

Author:
Benjamin Sigg

Method Summary
 Dockable[] getHistory()
          Gets an array containing all known Dockables 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.
 

Method Detail

getHistory

Dockable[] getHistory()
Gets an array containing all known Dockables 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.

Returns:
a copy of the history

getNewestOn

Dockable getNewestOn(DockStation... parents)
Searches the one Dockable that had the focus lately, and that is a child of one of parent.

Parameters:
parents - the stations whose child is searched
Returns:
a Dockable that had the focus and which is a child of one of the parents, or null if no such Dockable can be found