bibliothek.gui.dock.common.mode.station
Class CSplitDockStationHandle

java.lang.Object
  extended by bibliothek.gui.dock.common.mode.station.CSplitDockStationHandle

public class CSplitDockStationHandle
extends Object

Combination of CMaximizedModeArea, CNormalModeArea and a SplitDockStation.

Author:
Benjamin Sigg

Nested Class Summary
protected  class CSplitDockStationHandle.Maximal
           
protected  class CSplitDockStationHandle.Normal
           
 
Constructor Summary
CSplitDockStationHandle(CStation<SplitDockStation> station, CLocationModeManager manager)
          Creates a new handle.
 
Method Summary
 CMaximizedModeArea asMaximziedModeArea()
          Returns this as MaximizedModeArea
 CNormalModeArea asNormalModeArea()
          Returns this as NormalModeArea
 void dropAside(Dockable dockable)
          Ensures that dockable is a child of this station.
 SplitDockStation getStation()
          Gets the station which is managed by this handle.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CSplitDockStationHandle

public CSplitDockStationHandle(CStation<SplitDockStation> station,
                               CLocationModeManager manager)
Creates a new handle.

Parameters:
station - the station to handle
manager - the manager in whose realm this handle is used
Method Detail

getStation

public SplitDockStation getStation()
Gets the station which is managed by this handle.

Returns:
the station

asNormalModeArea

public CNormalModeArea asNormalModeArea()
Returns this as NormalModeArea

Returns:
a representation of this

asMaximziedModeArea

public CMaximizedModeArea asMaximziedModeArea()
Returns this as MaximizedModeArea

Returns:
a representation of this

dropAside

public void dropAside(Dockable dockable)
Ensures that dockable is a child of this station.

Parameters:
dockable - the element to drop, must not yet be a child of this station
Throws:
IllegalStateException - if dockable already is a child of this station.