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>
AdaptedChildVisualFactoryContextimplementation.- Author:
- Daniel Sagenschneider
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAdaptedChildVisualFactoryContextImpl.ChildGroupRegistratorFunctioninterface 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 thePanefor the child group.booleanisPalettePrototype()Indicates if palette prototype.javafx.scene.control.Labellabel(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-Classof theModel.isPalettePrototype- Indicates if rendering the palette prototype.label-Supplierof 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:
labelin 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:AdaptedChildVisualFactoryContextSpecifies thePanefor the child group.- Specified by:
childGroupin interfaceAdaptedChildVisualFactoryContext<M extends Model>- Type Parameters:
P- ParentPanetype.- Parameters:
childGroupName- Name of the child group.parent-Paneto add the child group visuals.- Returns:
- Input
Pane.
-
isPalettePrototype
public boolean isPalettePrototype()
Description copied from interface:AdaptedChildVisualFactoryContextIndicates 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:
isPalettePrototypein interfaceAdaptedChildVisualFactoryContext<M extends Model>- Returns:
trueif the palette prototype.
-
-