public class CommonDockStationFactory extends Object implements DockFactory<CommonDockStation<?,?>,CommonDockStationPerspective,CommonDockStationLayout>
CommonDockStations. This factory actually forwards the work to
a real DockFactory and only stores meta-data (like "was the
CommonDockStation as SingleCDockable?").| Modifier and Type | Field and Description |
|---|---|
static String |
FACTORY_ID
The unique identifier of this factory
|
| Constructor and Description |
|---|
CommonDockStationFactory(CControl control,
FrontendPerspectiveCache cache,
CommonSingleDockableFactory singleDockableFactory)
Creates a new factory
|
public static final String FACTORY_ID
public CommonDockStationFactory(CControl control, FrontendPerspectiveCache cache, CommonSingleDockableFactory singleDockableFactory)
control - the CControl in whose realm this factory works, not nullcache - used to create missing PerspectiveElements, can be nullsingleDockableFactory - the factory used to create new CommonDockStations that are also SingleCDockables, not nullprotected CommonDockStation<?,?> createStation(String id)
id - the unique identifier of a SingleCDockablenull if id is unknownprotected void registerStation(CStation<?> station, boolean root)
station at the CControl in whose realm this factory works.station - the station to registerroot - whether to set the root flag or notpublic String getID()
getID in interface DockConverter<CommonDockStation<?,?>,CommonDockStationPerspective,CommonDockStationLayout>public CommonDockStationLayout getLayout(CommonDockStation<?,?> element, Map<Dockable,Integer> children)
getLayout in interface DockConverter<CommonDockStation<?,?>,CommonDockStationPerspective,CommonDockStationLayout>public CommonDockStation<?,?> layout(CommonDockStationLayout layout, Map<Integer,Dockable> children, PlaceholderStrategy placeholders)
layout in interface DockFactory<CommonDockStation<?,?>,CommonDockStationPerspective,CommonDockStationLayout>public CommonDockStation<?,?> layout(CommonDockStationLayout layout, PlaceholderStrategy placeholders)
layout in interface DockFactory<CommonDockStation<?,?>,CommonDockStationPerspective,CommonDockStationLayout>public void setLayout(CommonDockStation<?,?> element, CommonDockStationLayout layout, Map<Integer,Dockable> children, PlaceholderStrategy placeholders)
setLayout in interface DockConverter<CommonDockStation<?,?>,CommonDockStationPerspective,CommonDockStationLayout>public void setLayout(CommonDockStation<?,?> element, CommonDockStationLayout layout, PlaceholderStrategy placeholders)
setLayout in interface DockConverter<CommonDockStation<?,?>,CommonDockStationPerspective,CommonDockStationLayout>public void estimateLocations(CommonDockStationLayout layout, LocationEstimationMap children)
estimateLocations in interface DockFactory<CommonDockStation<?,?>,CommonDockStationPerspective,CommonDockStationLayout>public CommonDockStationPerspective layoutPerspective(CommonDockStationLayout layout, Map<Integer,PerspectiveDockable> children)
layoutPerspective in interface DockFactory<CommonDockStation<?,?>,CommonDockStationPerspective,CommonDockStationLayout>public void layoutPerspective(CommonDockStationPerspective element, CommonDockStationLayout layout, Map<Integer,PerspectiveDockable> children)
layoutPerspective in interface DockFactory<CommonDockStation<?,?>,CommonDockStationPerspective,CommonDockStationLayout>public CommonDockStationLayout getPerspectiveLayout(CommonDockStationPerspective element, Map<PerspectiveDockable,Integer> children)
getPerspectiveLayout in interface DockConverter<CommonDockStation<?,?>,CommonDockStationPerspective,CommonDockStationLayout>public void write(CommonDockStationLayout layout, XElement element)
write in interface DockConverter<CommonDockStation<?,?>,CommonDockStationPerspective,CommonDockStationLayout>public CommonDockStationLayout read(XElement element, PlaceholderStrategy placeholders)
read in interface DockConverter<CommonDockStation<?,?>,CommonDockStationPerspective,CommonDockStationLayout>public void write(CommonDockStationLayout layout, DataOutputStream out) throws IOException
write in interface DockConverter<CommonDockStation<?,?>,CommonDockStationPerspective,CommonDockStationLayout>IOExceptionpublic CommonDockStationLayout read(DataInputStream in, PlaceholderStrategy placeholders) throws IOException
read in interface DockConverter<CommonDockStation<?,?>,CommonDockStationPerspective,CommonDockStationLayout>IOExceptionCopyright © 2018. All rights reserved.