bibliothek.gui.dock.common
Interface CFocusHistory

All Known Implementing Classes:
DefaultCFocusHistory

public interface CFocusHistory

Describes which CDockable did have the focus in which order.

Author:
Benjamin Sigg

Method Summary
 CDockable getFirst(Filter<CDockable> filter)
          Gets the first CDockable matching filter.
 CDockable[] getHistory()
          Gets the entire history of focused CDockables, the most recent focused dockable is at the beginning of the array.
 

Method Detail

getHistory

CDockable[] getHistory()
Gets the entire history of focused CDockables, the most recent focused dockable is at the beginning of the array.

Returns:
the history starting with the most resently focused CDockable

getFirst

CDockable getFirst(Filter<CDockable> filter)
Gets the first CDockable matching filter. This method first searches through the history, and afterwards visits all CDockables that were not in the history.

Parameters:
filter - the filter applied to all CDockables
Returns:
the first dockable matching filter