bibliothek.gui.dock.common.intern
Interface CControlFactory

All Known Implementing Classes:
EfficientControlFactory, SecureControlFactory

public interface CControlFactory

A factory creating various elements that are needed in a CControl and its associated components.

Author:
Benjamin Sigg

Method Summary
 DockController createController(CControl owner)
          Creates or gets the DockController.
 CommonDockStation<FlapDockStation,?> createFlapDockStation(java.awt.Component expansion, CommonStationDelegate<FlapDockStation> delegate)
          Creates a new FlapDockStation.
 CDockFrontend createFrontend(CControlAccess owner, DockController controller)
          Creates a new DockFrontend that will be used by owner.
 MutableCControlRegister createRegister(CControl owner)
          Creates a new register that keeps track of all the elements shown and used by owner.
 CommonDockStation<ScreenDockStation,?> createScreenDockStation(WindowProvider owner, CommonStationDelegate<ScreenDockStation> delegate)
          Creates a new ScreenDockStation.
 CommonDockStation<SplitDockStation,?> createSplitDockStation(CommonStationDelegate<SplitDockStation> delegate)
          Creates a new SplitDockStation that implements CommonDockable as well.
 

Method Detail

createController

DockController createController(CControl owner)
Creates or gets the DockController.

Parameters:
owner - the control for which the result of this method will be used
Returns:
the new controller

createFrontend

CDockFrontend createFrontend(CControlAccess owner,
                             DockController controller)
Creates a new DockFrontend that will be used by owner.

Parameters:
owner - the owner
controller - the controller to be used by the new frontend
Returns:
the new frontend

createRegister

MutableCControlRegister createRegister(CControl owner)
Creates a new register that keeps track of all the elements shown and used by owner.

Parameters:
owner - the owner of the register
Returns:
the new register

createFlapDockStation

CommonDockStation<FlapDockStation,?> createFlapDockStation(java.awt.Component expansion,
                                                           CommonStationDelegate<FlapDockStation> delegate)
Creates a new FlapDockStation.

Parameters:
expansion - a Component which will be some parent of the result, the FlapDockStation.getExpansionBounds() should act as if expansion were the whole station
delegate - some methods that can be used by the created station
Returns:
the new station

createScreenDockStation

CommonDockStation<ScreenDockStation,?> createScreenDockStation(WindowProvider owner,
                                                               CommonStationDelegate<ScreenDockStation> delegate)
Creates a new ScreenDockStation.

Parameters:
owner - the owner of the dialogs of the station
delegate - some methods that can be used by the created station
Returns:
the new station

createSplitDockStation

CommonDockStation<SplitDockStation,?> createSplitDockStation(CommonStationDelegate<SplitDockStation> delegate)
Creates a new SplitDockStation that implements CommonDockable as well.

Parameters:
delegate - some methods that can be used by the created station
Returns:
the new station