public class CommonSingleDockableFactory extends Object implements DockFactory<CommonDockable,CommonElementPerspective,CommonSingleDockableLayout>
SingleCDockables using various
SingleCDockableFactorys. This factory is accessed when a single
dockable is missing in the cache of its owning CControl.| Modifier and Type | Field and Description |
|---|---|
static String |
BACKUP_FACTORY_ID |
| Constructor and Description |
|---|
CommonSingleDockableFactory(CControl control)
Creates a new factory.
|
CommonSingleDockableFactory(CControl control,
CPerspective perspective)
Creates a new factory.
|
public static final String BACKUP_FACTORY_ID
public CommonSingleDockableFactory(CControl control)
control - the owner of the factory, the factory will add SingleCDockable
to this controlpublic CommonSingleDockableFactory(CControl control, CPerspective perspective)
control - the owner of the factory, the factory will add SingleCDockable
to this controlperspective - the perspective which is used to load perspective related contentpublic void add(String id, SingleCDockableFactory factory)
SingleCDockables with
the unique id id.id - the unique id of the dockables which factory will createfactory - the new factorypublic void add(Filter<String> ids, SingleCDockableFactory factory)
SingleCDockable with
unique identifiers that are included by ids.ids - the identifiers that are includedfactory - the new factorypublic void remove(String id)
id - the name of the factory to removepublic void remove(SingleCDockableFactory factory)
factory.factory - the factory to removepublic SingleCDockableFactory getFactory(String id)
id.id - the name of a factorynullpublic String getID()
getID in interface DockConverter<CommonDockable,CommonElementPerspective,CommonSingleDockableLayout>public String[] listFactories()
public Set<String> getFactoryIds()
public void estimateLocations(CommonSingleDockableLayout layout, LocationEstimationMap children)
estimateLocations in interface DockFactory<CommonDockable,CommonElementPerspective,CommonSingleDockableLayout>public CommonSingleDockableLayout getLayout(CommonDockable element, Map<Dockable,Integer> children)
getLayout in interface DockConverter<CommonDockable,CommonElementPerspective,CommonSingleDockableLayout>public CommonDockable layout(CommonSingleDockableLayout layout, Map<Integer,Dockable> children, PlaceholderStrategy placeholders)
layout in interface DockFactory<CommonDockable,CommonElementPerspective,CommonSingleDockableLayout>public CommonDockable layout(CommonSingleDockableLayout layout, PlaceholderStrategy placeholders)
layout in interface DockFactory<CommonDockable,CommonElementPerspective,CommonSingleDockableLayout>public CommonElementPerspective layoutPerspective(CommonSingleDockableLayout layout, Map<Integer,PerspectiveDockable> children)
layoutPerspective in interface DockFactory<CommonDockable,CommonElementPerspective,CommonSingleDockableLayout>public void layoutPerspective(CommonElementPerspective perspective, CommonSingleDockableLayout layout, Map<Integer,PerspectiveDockable> children)
layoutPerspective in interface DockFactory<CommonDockable,CommonElementPerspective,CommonSingleDockableLayout>public CommonSingleDockableLayout getPerspectiveLayout(CommonElementPerspective element, Map<PerspectiveDockable,Integer> children)
getPerspectiveLayout in interface DockConverter<CommonDockable,CommonElementPerspective,CommonSingleDockableLayout>public CommonSingleDockableLayout read(DataInputStream in, PlaceholderStrategy placeholders) throws IOException
read in interface DockConverter<CommonDockable,CommonElementPerspective,CommonSingleDockableLayout>IOExceptionpublic CommonSingleDockableLayout read(XElement element, PlaceholderStrategy placeholders)
read in interface DockConverter<CommonDockable,CommonElementPerspective,CommonSingleDockableLayout>public void setLayout(CommonDockable element, CommonSingleDockableLayout layout, Map<Integer,Dockable> children, PlaceholderStrategy placeholders)
setLayout in interface DockConverter<CommonDockable,CommonElementPerspective,CommonSingleDockableLayout>public void setLayout(CommonDockable element, CommonSingleDockableLayout layout, PlaceholderStrategy placeholders)
setLayout in interface DockConverter<CommonDockable,CommonElementPerspective,CommonSingleDockableLayout>public void write(CommonSingleDockableLayout layout, DataOutputStream out) throws IOException
write in interface DockConverter<CommonDockable,CommonElementPerspective,CommonSingleDockableLayout>IOExceptionpublic void write(CommonSingleDockableLayout layout, XElement element)
write in interface DockConverter<CommonDockable,CommonElementPerspective,CommonSingleDockableLayout>Copyright © 2018. All rights reserved.