Package org.eclipse.gef.mvc.fx.parts
Interface IContentPartFactory
-
public interface IContentPartFactoryA factory for creating newIContentParts. TheIViewercan be configured with anIContentPartFactory. Whenever a behavior of anIContentPartin that viewer needs to create another childIContentPart, it can use the viewer'sIContentPartFactory, passing in itself as context behavior.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IContentPart<? extends javafx.scene.Node>createContentPart(java.lang.Object content, java.util.Map<java.lang.Object,java.lang.Object> contextMap)Creates a specificIContentPartfor the given content.
-
-
-
Method Detail
-
createContentPart
IContentPart<? extends javafx.scene.Node> createContentPart(java.lang.Object content, java.util.Map<java.lang.Object,java.lang.Object> contextMap)
Creates a specificIContentPartfor the given content. As additional information might be needed by theIContentPartFactoryto identify the creation context, an additional contextMap is passed in upon creation.- Parameters:
content- The modelObjectfor which anIContentPartis to be created.contextMap- A map in which additional context information for the creation process can be placed.- Returns:
- An
IContentPartfor the given content and context.
-
-