bibliothek.gui.dock.common.intern.station
Interface CommonStationDelegate<S extends DockStation>

Type Parameters:
S - the type of DockStation this delegate represents

public interface CommonStationDelegate<S extends DockStation>

Implements several methods that could be used by a CommonDockStation. Instances of this interface are most times used as delegate by a CommonDockStation.

Author:
Benjamin Sigg

Method Summary
 CDockable getDockable()
          Gets a result for CommonDockable.getDockable().
 DockActionSource[] getSources()
          Gets a result for CommonDockable.getSources().
 CStation<S> getStation()
          Gets a result for CommonDockStation.getStation().
 boolean isTitleDisplayed(DockTitleVersion title)
          Decides whether to show title for the owner of this delegate.
 

Method Detail

getDockable

CDockable getDockable()
Gets a result for CommonDockable.getDockable().

Returns:
the dockable as it is seen by Common

getStation

CStation<S> getStation()
Gets a result for CommonDockStation.getStation().

Returns:
the station as it is seen by Common

getSources

DockActionSource[] getSources()
Gets a result for CommonDockable.getSources().

Returns:
the sources for the owner of this delegate

isTitleDisplayed

boolean isTitleDisplayed(DockTitleVersion title)
Decides whether to show title for the owner of this delegate.

Parameters:
title - the title that might be shown
Returns:
true if the title should be visible, false otherwise