bibliothek.gui.dock.station.stack.tab
Interface TabContentFilter

All Known Implementing Classes:
AbstractTabContentFilter, DefaultTabContentFilter

public interface TabContentFilter

This interface tells a StackDockStation how to fill the tabs for its children.

Author:
Benjamin Sigg

Method Summary
 void addListener(StackDockStationFilterListener listener)
          Adds a listener to this filter.
 TabContent filter(TabContent content, StackDockStation station, Dockable dockable)
          Filters the contents of a tab.
 void install(StackDockStation station)
          Informs this filter that it will be used by station.
 void removeListener(StackDockStationFilterListener listener)
          Removes a listener from this filter.
 void uninstall(StackDockStation station)
          Informs this filter that it is no longer used by station.
 

Method Detail

install

void install(StackDockStation station)
Informs this filter that it will be used by station.

Parameters:
station - a new client

uninstall

void uninstall(StackDockStation station)
Informs this filter that it is no longer used by station.

Parameters:
station - an old client

addListener

void addListener(StackDockStationFilterListener listener)
Adds a listener to this filter. The listener can be called if this filter changes its behavior.

Parameters:
listener - the new listener, not null

removeListener

void removeListener(StackDockStationFilterListener listener)
Removes a listener from this filter.

Parameters:
listener - the listener to remove

filter

TabContent filter(TabContent content,
                  StackDockStation station,
                  Dockable dockable)
Filters the contents of a tab.

Parameters:
content - the default content to use, not null
station - the station which calls this method
dockable - the element which is displayed
Returns:
the content to show, may be null