public interface IContentPartFactory
IContentParts. The IViewer can be
configured with an IContentPartFactory. Whenever a behavior of an
IContentPart in that viewer needs to create another child
IContentPart, it can use the viewer's IContentPartFactory,
passing in itself as context behavior.| Modifier and Type | Method and Description |
|---|---|
IContentPart<? extends Node> |
createContentPart(Object content,
Map<Object,Object> contextMap)
Creates a specific
IContentPart for the given content. |
IContentPart<? extends Node> createContentPart(Object content, Map<Object,Object> contextMap)
IContentPart for the given content. As
additional information might be needed by the IContentPartFactory
to identify the creation context, an additional contextMap is
passed in upon creation.content - The model Object for which an IContentPart is
to be created.contextMap - A map in which additional context information for the creation
process can be placed.IContentPart for the given content and context.Copyright (c) 2014, 2016 itemis AG and others. All rights reserved.