Class CommonMultipleDockableFactory
java.lang.Object
bibliothek.gui.dock.common.intern.CommonMultipleDockableFactory
- All Implemented Interfaces:
DockFactory<CommonDockable,,CommonElementPerspective, CommonMultipleDockableLayout> DockConverter<CommonDockable,CommonElementPerspective, CommonMultipleDockableLayout>
public class CommonMultipleDockableFactory
extends Object
implements DockFactory<CommonDockable,CommonElementPerspective,CommonMultipleDockableLayout>
A factory used to create
CommonDockables. This factory is only
used to create MultipleCDockables because SingleCDockables
are stored by the client.- Author:
- Benjamin Sigg
-
Constructor Summary
ConstructorsConstructorDescriptionCommonMultipleDockableFactory(String id, MultipleCDockableFactory<?, ?> delegate, CControlAccess access) Creates a new factory.CommonMultipleDockableFactory(String id, MultipleCDockableFactory<?, ?> delegate, CControlAccess access, CPerspective perspective) Creates a new factory. -
Method Summary
Modifier and TypeMethodDescriptionvoidestimateLocations(CommonMultipleDockableLayout layout, LocationEstimationMap children) Gets the delegate of this factory.getID()getLayout(CommonDockable element, Map<Dockable, Integer> children) getPerspectiveLayout(CommonElementPerspective element, Map<PerspectiveDockable, Integer> children) layout(CommonMultipleDockableLayout layout, PlaceholderStrategy placeholders) layout(CommonMultipleDockableLayout layout, Map<Integer, Dockable> children, PlaceholderStrategy placeholders) layoutPerspective(CommonMultipleDockableLayout layout, Map<Integer, PerspectiveDockable> children) voidlayoutPerspective(CommonElementPerspective perspective, CommonMultipleDockableLayout layout, Map<Integer, PerspectiveDockable> children) read(XElement element, PlaceholderStrategy placeholders) read(DataInputStream in, PlaceholderStrategy placeholders) voidsetLayout(CommonDockable element, CommonMultipleDockableLayout layout, PlaceholderStrategy placeholders) voidsetLayout(CommonDockable element, CommonMultipleDockableLayout layout, Map<Integer, Dockable> children, PlaceholderStrategy placeholders) voidwrite(CommonMultipleDockableLayout layout, XElement element) voidwrite(CommonMultipleDockableLayout layout, DataOutputStream out)
-
Constructor Details
-
CommonMultipleDockableFactory
public CommonMultipleDockableFactory(String id, MultipleCDockableFactory<?, ?> delegate, CControlAccess access) Creates a new factory.- Parameters:
id- the identifier of this factorydelegate- the factory that should be used to load the contents of the newCommonDockableaccess- access to the internal affairs of aCControl
-
CommonMultipleDockableFactory
public CommonMultipleDockableFactory(String id, MultipleCDockableFactory<?, ?> delegate, CControlAccess access, CPerspective perspective) Creates a new factory.- Parameters:
id- the identifier of this factorydelegate- the factory that should be used to load the contents of the newCommonDockableaccess- access to the internal affairs of aCControlperspective- theCPerspectivefor which this factory is going to read and write elements
-
-
Method Details
-
getID
- Specified by:
getIDin interfaceDockConverter<CommonDockable,CommonElementPerspective, CommonMultipleDockableLayout>
-
getFactory
Gets the delegate of this factory.- Returns:
- the delegate, not
null
-
estimateLocations
- Specified by:
estimateLocationsin interfaceDockFactory<CommonDockable,CommonElementPerspective, CommonMultipleDockableLayout>
-
getLayout
public CommonMultipleDockableLayout getLayout(CommonDockable element, Map<Dockable, Integer> children) - Specified by:
getLayoutin interfaceDockConverter<CommonDockable,CommonElementPerspective, CommonMultipleDockableLayout>
-
getPerspectiveLayout
public CommonMultipleDockableLayout getPerspectiveLayout(CommonElementPerspective element, Map<PerspectiveDockable, Integer> children) - Specified by:
getPerspectiveLayoutin interfaceDockConverter<CommonDockable,CommonElementPerspective, CommonMultipleDockableLayout>
-
layoutPerspective
public void layoutPerspective(CommonElementPerspective perspective, CommonMultipleDockableLayout layout, Map<Integer, PerspectiveDockable> children) - Specified by:
layoutPerspectivein interfaceDockFactory<CommonDockable,CommonElementPerspective, CommonMultipleDockableLayout>
-
layoutPerspective
public CommonElementPerspective layoutPerspective(CommonMultipleDockableLayout layout, Map<Integer, PerspectiveDockable> children) - Specified by:
layoutPerspectivein interfaceDockFactory<CommonDockable,CommonElementPerspective, CommonMultipleDockableLayout>
-
layout
public CommonDockable layout(CommonMultipleDockableLayout layout, Map<Integer, Dockable> children, PlaceholderStrategy placeholders) - Specified by:
layoutin interfaceDockFactory<CommonDockable,CommonElementPerspective, CommonMultipleDockableLayout>
-
layout
- Specified by:
layoutin interfaceDockFactory<CommonDockable,CommonElementPerspective, CommonMultipleDockableLayout>
-
setLayout
public void setLayout(CommonDockable element, CommonMultipleDockableLayout layout, Map<Integer, Dockable> children, PlaceholderStrategy placeholders) - Specified by:
setLayoutin interfaceDockConverter<CommonDockable,CommonElementPerspective, CommonMultipleDockableLayout>
-
setLayout
public void setLayout(CommonDockable element, CommonMultipleDockableLayout layout, PlaceholderStrategy placeholders) - Specified by:
setLayoutin interfaceDockConverter<CommonDockable,CommonElementPerspective, CommonMultipleDockableLayout>
-
read
public CommonMultipleDockableLayout read(DataInputStream in, PlaceholderStrategy placeholders) throws IOException - Specified by:
readin interfaceDockConverter<CommonDockable,CommonElementPerspective, CommonMultipleDockableLayout> - Throws:
IOException
-
read
- Specified by:
readin interfaceDockConverter<CommonDockable,CommonElementPerspective, CommonMultipleDockableLayout>
-
write
- Specified by:
writein interfaceDockConverter<CommonDockable,CommonElementPerspective, CommonMultipleDockableLayout> - Throws:
IOException
-
write
- Specified by:
writein interfaceDockConverter<CommonDockable,CommonElementPerspective, CommonMultipleDockableLayout>
-