Class AbstractAdaptedConnectablePart<M extends Model,A extends AdaptedConnectable<M>>
- java.lang.Object
-
- org.eclipse.gef.mvc.fx.parts.AbstractVisualPart<V>
-
- org.eclipse.gef.mvc.fx.parts.AbstractContentPart<N>
-
- net.officefloor.gef.editor.internal.parts.AbstractAdaptedPart<M,A,javafx.scene.Node>
-
- net.officefloor.gef.editor.internal.parts.AbstractAdaptedConnectablePart<M,A>
-
- All Implemented Interfaces:
AdaptedModelStyler
,org.eclipse.gef.common.activate.IActivatable
,org.eclipse.gef.common.adapt.IAdaptable
,org.eclipse.gef.common.adapt.IAdaptable.Bound<org.eclipse.gef.mvc.fx.viewer.IViewer>
,org.eclipse.gef.common.dispose.IDisposable
,org.eclipse.gef.mvc.fx.parts.IContentPart<javafx.scene.Node>
,org.eclipse.gef.mvc.fx.parts.IVisualPart<javafx.scene.Node>
- Direct Known Subclasses:
AdaptedAreaPart
,AdaptedChildPart
public abstract class AbstractAdaptedConnectablePart<M extends Model,A extends AdaptedConnectable<M>> extends AbstractAdaptedPart<M,A,javafx.scene.Node> implements AdaptedModelStyler
IContentPart
for theAdaptedConnectable
.- Author:
- Daniel Sagenschneider
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
isPalettePrototype
Indicates whether a Palette prototype.
-
Constructor Summary
Constructors Constructor Description AbstractAdaptedConnectablePart()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract javafx.scene.Node
createVisualNode()
Creates the visualNode
.protected void
doAddChildVisual(org.eclipse.gef.mvc.fx.parts.IVisualPart<? extends javafx.scene.Node> child, int index)
protected void
doAttachToAnchorageVisual(org.eclipse.gef.mvc.fx.parts.IVisualPart<? extends javafx.scene.Node> anchorage, java.lang.String role)
javafx.scene.Node
doCreateVisual()
protected void
doDetachFromAnchorageVisual(org.eclipse.gef.mvc.fx.parts.IVisualPart<? extends javafx.scene.Node> anchorage, java.lang.String role)
protected com.google.common.collect.SetMultimap<? extends java.lang.Object,java.lang.String>
doGetContentAnchorages()
protected java.util.List<java.lang.Object>
doGetContentChildren()
protected void
doRefreshVisual(javafx.scene.Node visual)
protected void
doRemoveChildVisual(org.eclipse.gef.mvc.fx.parts.IVisualPart<? extends javafx.scene.Node> child, int index)
javafx.scene.layout.Region
getAdaptedConnectorNode(AdaptedConnector<?> connector)
Obtains theGeometryNode
for theAdaptedConnector
.protected AdaptedModelVisualFactoryContextImpl.ConnectorLoader<M>
getConnectorLoader()
Obtains theAdaptedModelVisualFactoryContextImpl.ConnectorLoader
.AdaptedErrorHandler
getErrorHandler()
Obtains theAdaptedErrorHandler
.Model
getModel()
Obtains theModel
.static void
loadStyling(javafx.scene.Node visualNode, java.lang.Class<? extends Model> modelClass, javafx.beans.property.ReadOnlyProperty<java.net.URL> stylesheetUrl)
Loads the styling for the childPane
.javafx.beans.property.Property<java.lang.String>
style()
Obtains theProperty
to style theAdaptedModel
.-
Methods inherited from class net.officefloor.gef.editor.internal.parts.AbstractAdaptedPart
getContent, init, setContent
-
Methods inherited from class org.eclipse.gef.mvc.fx.parts.AbstractContentPart
addContentChild, attachToContentAnchorage, contentAnchoragesUnmodifiableProperty, contentChildrenUnmodifiableProperty, contentProperty, detachFromContentAnchorage, doAddContentChild, doAttachToContentAnchorage, doDetachFromContentAnchorage, doRemoveContentChild, doReorderContentChild, getContentAnchoragesUnmodifiable, getContentChildrenUnmodifiable, isFocusable, isSelectable, refreshContentAnchorages, refreshContentChildren, register, registerAtContentPartMap, removeContentChild, reorderContentChild, unregister, unregisterFromContentPartMap
-
Methods inherited from class org.eclipse.gef.mvc.fx.parts.AbstractVisualPart
activate, activateAdapters, activateChildren, activeProperty, adaptableProperty, adaptersProperty, addChild, addChild, addChildren, addChildren, anchoragesUnmodifiableProperty, anchoredsUnmodifiableProperty, attachAnchored, attachToAnchorage, attachToAnchorage, childrenUnmodifiableProperty, deactivate, deactivateAdapters, deactivateChildren, detachAnchored, detachFromAnchorage, detachFromAnchorage, determineViewer, dispose, doActivate, doDeactivate, getAdaptable, getAdapter, getAdapter, getAdapter, getAdapterKey, getAdapters, getAdapters, getAdapters, getAnchoragesUnmodifiable, getAnchoredsUnmodifiable, getBehaviors, getChildrenUnmodifiable, getHandlers, getParent, getPolicies, getRoot, getVisual, isActive, isRefreshVisual, parentProperty, refreshVisual, refreshVisualProperty, registerAtVisualPartMap, removeChild, removeChildren, reorderChild, setAdaptable, setAdapter, setAdapter, setAdapter, setAdapter, setParent, setRefreshVisual, unregisterFromVisualPartMap, unsetAdapter
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.gef.common.activate.IActivatable
activate, activeProperty, deactivate, isActive
-
Methods inherited from interface org.eclipse.gef.common.adapt.IAdaptable
adaptersProperty, getAdapter, getAdapter, getAdapter, getAdapterKey, getAdapters, getAdapters, getAdapters, setAdapter, setAdapter, setAdapter, setAdapter, unsetAdapter
-
Methods inherited from interface org.eclipse.gef.common.adapt.IAdaptable.Bound
adaptableProperty, getAdaptable, setAdaptable
-
Methods inherited from interface org.eclipse.gef.mvc.fx.parts.IVisualPart
addChild, addChild, addChildren, addChildren, anchoragesUnmodifiableProperty, anchoredsUnmodifiableProperty, attachAnchored, attachToAnchorage, attachToAnchorage, childrenUnmodifiableProperty, detachAnchored, detachFromAnchorage, detachFromAnchorage, getAnchoragesUnmodifiable, getAnchoredsUnmodifiable, getBehaviors, getChildrenUnmodifiable, getHandlers, getParent, getPolicies, getRoot, getViewer, getVisual, isRefreshVisual, parentProperty, refreshVisual, refreshVisualProperty, removeChild, removeChildren, reorderChild, setParent, setRefreshVisual
-
-
-
-
Method Detail
-
loadStyling
public static void loadStyling(javafx.scene.Node visualNode, java.lang.Class<? extends Model> modelClass, javafx.beans.property.ReadOnlyProperty<java.net.URL> stylesheetUrl)
Loads the styling for the childPane
.- Parameters:
visualNode
- Child visualNode
.modelClass
-Class
of theModel
.stylesheetUrl
-ReadOnlyProperty
to specific stylingURL
.
-
getAdaptedConnectorNode
public javafx.scene.layout.Region getAdaptedConnectorNode(AdaptedConnector<?> connector)
Obtains theGeometryNode
for theAdaptedConnector
.- Parameters:
connector
-AdaptedConnector
.- Returns:
GeometryNode
.
-
getErrorHandler
public AdaptedErrorHandler getErrorHandler()
Obtains theAdaptedErrorHandler
.- Returns:
AdaptedErrorHandler
.
-
getModel
public Model getModel()
Description copied from interface:AdaptedModelStyler
Obtains theModel
.- Specified by:
getModel
in interfaceAdaptedModelStyler
- Returns:
Model
.
-
style
public javafx.beans.property.Property<java.lang.String> style()
Description copied from interface:AdaptedModelStyler
Obtains theProperty
to style theAdaptedModel
.- Specified by:
style
in interfaceAdaptedModelStyler
- Returns:
Property
to style theAdaptedModel
.
-
doGetContentAnchorages
protected com.google.common.collect.SetMultimap<? extends java.lang.Object,java.lang.String> doGetContentAnchorages()
- Specified by:
doGetContentAnchorages
in classorg.eclipse.gef.mvc.fx.parts.AbstractContentPart<javafx.scene.Node>
-
doAttachToAnchorageVisual
protected void doAttachToAnchorageVisual(org.eclipse.gef.mvc.fx.parts.IVisualPart<? extends javafx.scene.Node> anchorage, java.lang.String role)
- Overrides:
doAttachToAnchorageVisual
in classorg.eclipse.gef.mvc.fx.parts.AbstractVisualPart<javafx.scene.Node>
-
doDetachFromAnchorageVisual
protected void doDetachFromAnchorageVisual(org.eclipse.gef.mvc.fx.parts.IVisualPart<? extends javafx.scene.Node> anchorage, java.lang.String role)
- Overrides:
doDetachFromAnchorageVisual
in classorg.eclipse.gef.mvc.fx.parts.AbstractVisualPart<javafx.scene.Node>
-
doGetContentChildren
protected java.util.List<java.lang.Object> doGetContentChildren()
- Specified by:
doGetContentChildren
in classorg.eclipse.gef.mvc.fx.parts.AbstractContentPart<javafx.scene.Node>
-
doAddChildVisual
protected void doAddChildVisual(org.eclipse.gef.mvc.fx.parts.IVisualPart<? extends javafx.scene.Node> child, int index)
- Overrides:
doAddChildVisual
in classorg.eclipse.gef.mvc.fx.parts.AbstractVisualPart<javafx.scene.Node>
-
doRemoveChildVisual
protected void doRemoveChildVisual(org.eclipse.gef.mvc.fx.parts.IVisualPart<? extends javafx.scene.Node> child, int index)
- Overrides:
doRemoveChildVisual
in classorg.eclipse.gef.mvc.fx.parts.AbstractVisualPart<javafx.scene.Node>
-
createVisualNode
protected abstract javafx.scene.Node createVisualNode()
Creates the visualNode
.- Returns:
- Visual
Node
.
-
doCreateVisual
public javafx.scene.Node doCreateVisual()
- Specified by:
doCreateVisual
in classorg.eclipse.gef.mvc.fx.parts.AbstractVisualPart<javafx.scene.Node>
-
doRefreshVisual
protected void doRefreshVisual(javafx.scene.Node visual)
- Specified by:
doRefreshVisual
in classorg.eclipse.gef.mvc.fx.parts.AbstractVisualPart<javafx.scene.Node>
-
getConnectorLoader
protected AdaptedModelVisualFactoryContextImpl.ConnectorLoader<M> getConnectorLoader()
Obtains theAdaptedModelVisualFactoryContextImpl.ConnectorLoader
.
-
-