Interface CControlFactory
- All Known Implementing Classes:
EfficientControlFactory
public interface CControlFactory
A factory creating various elements that are needed in a
CControl
and its associated components.- Author:
- Benjamin Sigg
-
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.
-
Method Details
-
createController
Creates or gets theDockController.- Parameters:
owner- the control for which the result of this method will be used- Returns:
- the new controller
-
createFrontend
Creates a newDockFrontendthat will be used byowner.- Parameters:
owner- the ownercontroller- the controller to be used by the new frontend- Returns:
- the new frontend
-
createRegister
Creates a new register that keeps track of all the elements shown and used byowner.- Parameters:
owner- the owner of the register- Returns:
- the new register
-
createFlapDockStation
CommonDockStation<FlapDockStation,CFlapDockStation> createFlapDockStation(Component expansion, CommonStationDelegate<CFlapDockStation> delegate) Creates a newFlapDockStation.- 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
CommonDockStation<ScreenDockStation,CScreenDockStation> createScreenDockStation(WindowProvider owner, CommonStationDelegate<CScreenDockStation> delegate) Creates a newScreenDockStation.- 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
CommonDockStation<SplitDockStation,CSplitDockStation> createSplitDockStation(CommonStationDelegate<CSplitDockStation> delegate) Creates a newSplitDockStationthat implementsCommonDockableas well.- Parameters:
delegate- some methods that can be used by the created station- Returns:
- the new station
-