bibliothek.gui.dock.common.intern
Class EfficientControlFactory

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

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.
 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.
 CommonStation<SplitDockStation> createSplitDockStation(CommonStationDelegate 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 FlapDockStation createFlapDockStation(Component expansion)
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
Returns:
the new station

createScreenDockStation

public ScreenDockStation createScreenDockStation(WindowProvider owner)
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
Returns:
the new station

createSplitDockStation

public SplitDockStation createSplitDockStation()
Description copied from interface: CControlFactory
Creates a new SplitDockStation.

Specified by:
createSplitDockStation in interface CControlFactory
Returns:
the new station

createSplitDockStation

public CommonStation<SplitDockStation> createSplitDockStation(CommonStationDelegate 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