public class EfficientControlFactory extends Object implements CControlFactory
Constructor and Description |
---|
EfficientControlFactory() |
Modifier and Type | Method and Description |
---|---|
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. |
public DockController createController(CControl owner)
CControlFactory
DockController
.createController
in interface CControlFactory
owner
- the control for which the result of this method will be usedpublic CDockFrontend createFrontend(CControlAccess owner, DockController controller)
CControlFactory
DockFrontend
that will be used by owner
.createFrontend
in interface CControlFactory
owner
- the ownercontroller
- the controller to be used by the new frontendpublic MutableCControlRegister createRegister(CControl owner)
CControlFactory
owner
.createRegister
in interface CControlFactory
owner
- the owner of the registerpublic CommonDockStation<FlapDockStation,CFlapDockStation> createFlapDockStation(Component expansion, CommonStationDelegate<CFlapDockStation> delegate)
CControlFactory
FlapDockStation
.createFlapDockStation
in interface CControlFactory
expansion
- a Component
which will be some parent of
the result, the FlapDockStation.getExpansionBounds()
should
act as if expansion
were the whole stationdelegate
- some methods that can be used by the created stationpublic CommonDockStation<ScreenDockStation,CScreenDockStation> createScreenDockStation(WindowProvider owner, CommonStationDelegate<CScreenDockStation> delegate)
CControlFactory
ScreenDockStation
.createScreenDockStation
in interface CControlFactory
owner
- the owner of the dialogs of the stationdelegate
- some methods that can be used by the created stationpublic CommonDockStation<SplitDockStation,CSplitDockStation> createSplitDockStation(CommonStationDelegate<CSplitDockStation> delegate)
CControlFactory
SplitDockStation
that implements CommonDockable
as well.createSplitDockStation
in interface CControlFactory
delegate
- some methods that can be used by the created station