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.
 FlapDockStation createFlapDockStation(Component expansion)
          Creates a new FlapDockStation.
 ScreenDockStation createScreenDockStation(JFrame owner)
          Creates a new ScreenDockStation.
 SplitDockStation createSplitDockStation()
          Creates a new SplitDockStation.
 CWorkingArea createWorkingArea(String id)
          Creates a new CWorkingArea.
 
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 controller, always the same object

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(JFrame 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

createWorkingArea

public CWorkingArea createWorkingArea(String id)
Description copied from interface: CControlFactory
Creates a new CWorkingArea.

Specified by:
createWorkingArea in interface CControlFactory
Parameters:
id - the unique if of the area
Returns:
the new area