bibliothek.gui.dock.common.perspective
Interface CElementPerspective

All Known Subinterfaces:
CDockablePerspective, CStationPerspective
All Known Implementing Classes:
AbstractCDockablePerspective, CExternalizePerspective, CGridPerspective, CMinimizePerspective, CWorkingPerspective, MultipleCDockablePerspective, SingleCDockablePerspective

public interface CElementPerspective

Represents a dockable or a station in a CPerspective.

Author:
Benjamin Sigg

Method Summary
 CDockablePerspective asDockable()
          Gets this as dockable, if this is a dockable.
 CStationPerspective asStation()
          Gets this as station, if this is a station.
 CommonElementPerspective intern()
          Gets the internal representation for this element.
If asDockable() returns a non-null value, then intern().asDockable() must not return null either.
If asStation() returns a non-null value, then intern().asStation() must not return null either.
 

Method Detail

intern

CommonElementPerspective intern()
Gets the internal representation for this element.
If asDockable() returns a non-null value, then intern().asDockable() must not return null either.
If asStation() returns a non-null value, then intern().asStation() must not return null either.

Returns:
the internal representation

asDockable

CDockablePerspective asDockable()
Gets this as dockable, if this is a dockable.

Returns:
this or null

asStation

CStationPerspective asStation()
Gets this as station, if this is a station.

Returns:
this or null