Class EfficientControlFactory
java.lang.Object
bibliothek.gui.dock.common.intern.EfficientControlFactory
- All Implemented Interfaces:
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateController(CControl owner) Creates or gets theDockController.createFlapDockStation(Component expansion, CommonStationDelegate<CFlapDockStation> delegate) Creates a newFlapDockStation.createFrontend(CControlAccess owner, DockController controller) Creates a newDockFrontendthat will be used byowner.createRegister(CControl owner) Creates a new register that keeps track of all the elements shown and used byowner.createScreenDockStation(WindowProvider owner, CommonStationDelegate<CScreenDockStation> delegate) Creates a newScreenDockStation.Creates a newSplitDockStationthat implementsCommonDockableas well.
-
Constructor Details
-
EfficientControlFactory
public EfficientControlFactory()
-
-
Method Details
-
createController
Description copied from interface:CControlFactoryCreates or gets theDockController.- Specified by:
createControllerin interfaceCControlFactory- Parameters:
owner- the control for which the result of this method will be used- Returns:
- the new controller
-
createFrontend
Description copied from interface:CControlFactoryCreates a newDockFrontendthat will be used byowner.- Specified by:
createFrontendin interfaceCControlFactory- Parameters:
owner- the ownercontroller- the controller to be used by the new frontend- Returns:
- the new frontend
-
createRegister
Description copied from interface:CControlFactoryCreates a new register that keeps track of all the elements shown and used byowner.- Specified by:
createRegisterin interfaceCControlFactory- 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:CControlFactoryCreates a newFlapDockStation.- Specified by:
createFlapDockStationin interfaceCControlFactory- Parameters:
expansion- aComponentwhich will be some parent of the result, theFlapDockStation.getExpansionBounds()should act as ifexpansionwere the whole stationdelegate- 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:CControlFactoryCreates a newScreenDockStation.- Specified by:
createScreenDockStationin interfaceCControlFactory- Parameters:
owner- the owner of the dialogs of the stationdelegate- 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:CControlFactoryCreates a newSplitDockStationthat implementsCommonDockableas well.- Specified by:
createSplitDockStationin interfaceCControlFactory- Parameters:
delegate- some methods that can be used by the created station- Returns:
- the new station
-