bibliothek.gui.dock.common.intern
Class EfficientControlFactory

java.lang.Object
  extended by bibliothek.gui.dock.common.intern.EfficientControlFactory
All Implemented Interfaces:
CControlFactory

public class EfficientControlFactory
extends Object
implements CControlFactory

A factory that uses the most efficient elements, can only be used in environments where global events can be observed.

Author:
Benjamin Sigg

Constructor Summary
EfficientControlFactory()
           
 
Method Summary
 DockController createController(CControl owner)
          Creates or gets the DockController.
 CommonDockStation<FlapDockStation,CFlapDockStation> createFlapDockStation(Component expansion, CommonStationDelegate<CFlapDockStation> 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,CScreenDockStation> createScreenDockStation(WindowProvider owner, CommonStationDelegate<CScreenDockStation> delegate)
          Creates a new ScreenDockStation.
 CommonDockStation<SplitDockStation,CSplitDockStation> createSplitDockStation(CommonStationDelegate<CSplitDockStation> delegate)
          Creates a new SplitDockStation that implements CommonDockable as well.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EfficientControlFactory

public EfficientControlFactory()
Method Detail

createController

public DockController createController(CControl owner)
Description copied from interface: CControlFactory
Creates or gets the DockController.

Specified by:
createController in interface CControlFactory
Parameters:
owner - the control for which the result of this method will be used
Returns:
the new controller

createFrontend

public CDockFrontend createFrontend(CControlAccess owner,
                                    DockController controller)
Description copied from interface: CControlFactory
Creates a new DockFrontend that will be used by owner.

Specified by:
createFrontend in interface CControlFactory
Parameters:
owner - the owner
controller - the controller to be used by the new frontend
Returns:
the new frontend

createRegister

public MutableCControlRegister createRegister(CControl owner)
Description copied from interface: CControlFactory
Creates a new register that keeps track of all the elements shown and used by owner.

Specified by:
createRegister in interface CControlFactory
Parameters:
owner - the owner of the register
Returns:
the new register

createFlapDockStation

public CommonDockStation<FlapDockStation,CFlapDockStation> createFlapDockStation(Component expansion,
                                                                                 CommonStationDelegate<CFlapDockStation> delegate)
Description copied from interface: CControlFactory
Creates a new FlapDockStation.

Specified by:
createFlapDockStation in interface CControlFactory
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

public CommonDockStation<ScreenDockStation,CScreenDockStation> createScreenDockStation(WindowProvider owner,
                                                                                       CommonStationDelegate<CScreenDockStation> delegate)
Description copied from interface: CControlFactory
Creates a new ScreenDockStation.

Specified by:
createScreenDockStation in interface CControlFactory
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

public CommonDockStation<SplitDockStation,CSplitDockStation> createSplitDockStation(CommonStationDelegate<CSplitDockStation> delegate)
Description copied from interface: CControlFactory
Creates a new SplitDockStation that implements CommonDockable as well.

Specified by:
createSplitDockStation in interface CControlFactory
Parameters:
delegate - some methods that can be used by the created station
Returns:
the new station