Class AdaptedChildVisualFactoryContextImpl<M extends Model>
- java.lang.Object
-
- net.officefloor.gef.editor.internal.parts.AdaptedModelVisualFactoryContextImpl<M>
-
- net.officefloor.gef.editor.internal.parts.AdaptedChildVisualFactoryContextImpl<M>
-
- All Implemented Interfaces:
AdaptedActionVisualFactoryContext
,AdaptedChildVisualFactoryContext<M>
,AdaptedConnectorVisualFactoryContext
,AdaptedModelVisualFactoryContext<M>
public class AdaptedChildVisualFactoryContextImpl<M extends Model> extends AdaptedModelVisualFactoryContextImpl<M> implements AdaptedChildVisualFactoryContext<M>
AdaptedChildVisualFactoryContext
implementation.- Author:
- Daniel Sagenschneider
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
AdaptedChildVisualFactoryContextImpl.ChildGroupRegistrator
Function
interface to register the child group.-
Nested classes/interfaces inherited from class net.officefloor.gef.editor.internal.parts.AdaptedModelVisualFactoryContextImpl
AdaptedModelVisualFactoryContextImpl.Actioner<M extends Model>, AdaptedModelVisualFactoryContextImpl.ConnectorLoader<M extends Model>
-
Nested classes/interfaces inherited from interface net.officefloor.gef.editor.AdaptedModelVisualFactoryContext
AdaptedModelVisualFactoryContext.Connector
-
-
Field Summary
-
Fields inherited from class net.officefloor.gef.editor.internal.parts.AdaptedModelVisualFactoryContextImpl
isPalettePrototype, modelClass
-
-
Constructor Summary
Constructors Constructor Description AdaptedChildVisualFactoryContextImpl(java.lang.Class<M> modelClass, boolean isPalettePrototype, java.util.function.Supplier<javafx.beans.property.ReadOnlyProperty<java.lang.String>> label, AdaptedChildVisualFactoryContextImpl.ChildGroupRegistrator childGroupRegistrator, AdaptedModelVisualFactoryContextImpl.ConnectorLoader<M> connectorLoader, AdaptedModelVisualFactoryContextImpl.Actioner<M> actioner)
Instantiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <P extends javafx.scene.layout.Pane>
PchildGroup(java.lang.String childGroupName, P parent)
Specifies thePane
for the child group.boolean
isPalettePrototype()
Indicates if palette prototype.javafx.scene.control.Label
label(javafx.scene.layout.Pane parent)
-
Methods inherited from class net.officefloor.gef.editor.internal.parts.AdaptedModelVisualFactoryContextImpl
action, action, addIndent, addNode, connector, createImageWithHover
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.officefloor.gef.editor.AdaptedModelVisualFactoryContext
action, action, addIndent, addNode, connector, createImageWithHover
-
-
-
-
Constructor Detail
-
AdaptedChildVisualFactoryContextImpl
public AdaptedChildVisualFactoryContextImpl(java.lang.Class<M> modelClass, boolean isPalettePrototype, java.util.function.Supplier<javafx.beans.property.ReadOnlyProperty<java.lang.String>> label, AdaptedChildVisualFactoryContextImpl.ChildGroupRegistrator childGroupRegistrator, AdaptedModelVisualFactoryContextImpl.ConnectorLoader<M> connectorLoader, AdaptedModelVisualFactoryContextImpl.Actioner<M> actioner)
Instantiate.- Parameters:
modelClass
-Class
of theModel
.isPalettePrototype
- Indicates if rendering the palette prototype.label
-Supplier
of the label.childGroupRegistrator
-AdaptedChildVisualFactoryContextImpl.ChildGroupRegistrator
.connectorLoader
-AdaptedModelVisualFactoryContextImpl.ConnectorLoader
.actioner
-AdaptedModelVisualFactoryContextImpl.Actioner
.
-
-
Method Detail
-
label
public javafx.scene.control.Label label(javafx.scene.layout.Pane parent)
Description copied from interface:AdaptedChildVisualFactoryContext
- Specified by:
label
in interfaceAdaptedChildVisualFactoryContext<M extends Model>
- Parameters:
parent
-Pane
.- Returns:
- Added
Label
.
-
childGroup
public <P extends javafx.scene.layout.Pane> P childGroup(java.lang.String childGroupName, P parent)
Description copied from interface:AdaptedChildVisualFactoryContext
Specifies thePane
for the child group.- Specified by:
childGroup
in interfaceAdaptedChildVisualFactoryContext<M extends Model>
- Type Parameters:
P
- ParentPane
type.- Parameters:
childGroupName
- Name of the child group.parent
-Pane
to add the child group visuals.- Returns:
- Input
Pane
.
-
isPalettePrototype
public boolean isPalettePrototype()
Description copied from interface:AdaptedChildVisualFactoryContext
Indicates if palette prototype.
This allows for visual to not show actions or connectors that would be confusing (and error) if used from the palette.
- Specified by:
isPalettePrototype
in interfaceAdaptedChildVisualFactoryContext<M extends Model>
- Returns:
true
if the palette prototype.
-
-