bibliothek.gui.dock.common.perspective
Interface ShrinkablePerspectiveStation

All Superinterfaces:
PerspectiveElement, PerspectiveStation
All Known Implementing Classes:
CStackPerspective

public interface ShrinkablePerspectiveStation
extends PerspectiveStation

This kind of PerspectiveStation can find out whether it is really needed and can remove itself if not.

Author:
Benjamin Sigg

Method Summary
 PerspectiveDockable shrink()
          Checks the number of children this perspective has.
 
Methods inherited from interface bibliothek.gui.dock.perspective.PerspectiveStation
getDockable, getDockableCount, getDockableProperty, getPlaceholders, remove, replace, setPlaceholders
 
Methods inherited from interface bibliothek.gui.dock.perspective.PerspectiveElement
asDockable, asStation, getFactoryID
 

Method Detail

shrink

PerspectiveDockable shrink()
Checks the number of children this perspective has. If the number of children is 0 or 1, then this perspective replaces itself by its child in the of perspectives.

Returns:
the replacement of this, which is either this, the only child of this, or null