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.
 FlapDockStation createFlapDockStation(Component expansion)
          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.
 ScreenDockStation createScreenDockStation(WindowProvider owner)
          Creates a new ScreenDockStation.
 SplitDockStation createSplitDockStation()
          Creates a new SplitDockStation.
 CWorkingArea createWorkingArea(String id)
          Creates a new CWorkingArea.
 

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

FlapDockStation createFlapDockStation(Component expansion)
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
Returns:
the new station

createScreenDockStation

ScreenDockStation createScreenDockStation(WindowProvider owner)
Creates a new ScreenDockStation.

Parameters:
owner - the owner of the dialogs of the station
Returns:
the new station

createSplitDockStation

SplitDockStation createSplitDockStation()
Creates a new SplitDockStation.

Returns:
the new station

createWorkingArea

CWorkingArea createWorkingArea(String id)
Creates a new CWorkingArea.

Parameters:
id - the unique if of the area
Returns:
the new area