Class AdaptedChildFactory.AdaptedChildImpl<R extends Model,O,M extends Model,E extends java.lang.Enum<E>,A extends AdaptedChild<M>>
- java.lang.Object
-
- net.officefloor.gef.editor.internal.models.AbstractAdaptedFactory.AbstractAdaptedModel<R,O,M,E,A,F>
-
- net.officefloor.gef.editor.internal.models.AbstractAdaptedConnectableFactory.AbstractAdaptedConnectable<R,O,M,E,A,AdaptedChildFactory<R,O,M,E,A>>
-
- net.officefloor.gef.editor.internal.models.AdaptedChildFactory.AdaptedChildImpl<R,O,M,E,A>
-
- All Implemented Interfaces:
AdaptedChild<M>,AdaptedConnectable<M>,AdaptedModel<M>,ModelActionContext<R,O,M>
- Direct Known Subclasses:
AdaptedParentFactory.AdaptedParentImpl
- Enclosing class:
- AdaptedChildFactory<R extends Model,O,M extends Model,E extends java.lang.Enum<E>,A extends AdaptedChild<M>>
protected static class AdaptedChildFactory.AdaptedChildImpl<R extends Model,O,M extends Model,E extends java.lang.Enum<E>,A extends AdaptedChild<M>> extends AbstractAdaptedConnectableFactory.AbstractAdaptedConnectable<R,O,M,E,A,AdaptedChildFactory<R,O,M,E,A>> implements AdaptedChild<M>
AdaptedChildimplementation.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAdaptedChildImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javafx.scene.NodecreateVisual(AdaptedChildVisualFactoryContext<M> context)Creates the visualNode.java.util.List<ChildrenGroup<M,?>>getChildrenGroups()Obtains theChildrenGroupinstances.intgetDragLatency()Obtains the the drag latency.javafx.beans.property.StringPropertygetEditLabel()Obtains theStringPropertyto edit the label.javafx.beans.property.ReadOnlyStringPropertygetLabel()Obtains theReadOnlyStringPropertyfor the label.SelectOnlygetSelectOnly()Obtains whetherSelectOnly.javafx.beans.property.Property<java.lang.String>getStylesheet()Obtains thePropertyto the style sheet for thisAdaptedConnectable.javafx.beans.property.ReadOnlyProperty<java.net.URL>getStylesheetUrl()Obtains thePropertyto the style sheet URL for this visual of thisAdaptedConnectable.protected voidinit()Initialises thisAdaptedModel.protected voidloadDescendantConnections(java.util.List<AdaptedConnection<?>> connections)Loads the descendantAdaptedConnectioninstances.-
Methods inherited from class net.officefloor.gef.editor.internal.models.AbstractAdaptedConnectableFactory.AbstractAdaptedConnectable
action, createAdaptedConnector, createConnection, getAdaptedConnector, getAdaptedConnectors, getAdaptedModel, getConnections, getPotentialConnection, overlay
-
Methods inherited from class net.officefloor.gef.editor.internal.models.AbstractAdaptedFactory.AbstractAdaptedModel
getChangeExecutor, getErrorHandler, getFactory, getInjector, getModel, getOperations, getParent, getRootModel, position, refreshContent, registerEventListener
-
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.AdaptedConnectable
action, createConnection, getAdaptedConnector, getAdaptedConnectors, getConnections, getErrorHandler, getPotentialConnection
-
Methods inherited from interface net.officefloor.gef.editor.AdaptedModel
getModel, getParent
-
Methods inherited from interface net.officefloor.gef.editor.ModelActionContext
getChangeExecutor, getInjector, getModel, getOperations, getRootModel, position
-
-
-
-
Method Detail
-
init
protected void init()
Description copied from class:AbstractAdaptedFactory.AbstractAdaptedModelInitialises thisAdaptedModel.
-
getLabel
public javafx.beans.property.ReadOnlyStringProperty getLabel()
Description copied from interface:AdaptedChildObtains theReadOnlyStringPropertyfor the label.- Specified by:
getLabelin interfaceAdaptedChild<R extends Model>- Returns:
StringPropertyfor the label. May benullif no label.
-
getEditLabel
public javafx.beans.property.StringProperty getEditLabel()
Description copied from interface:AdaptedChildObtains theStringPropertyto edit the label.- Specified by:
getEditLabelin interfaceAdaptedChild<R extends Model>- Returns:
StringPropertyto edit the label. May benullif label not editable.
-
getStylesheet
public javafx.beans.property.Property<java.lang.String> getStylesheet()
Description copied from interface:AdaptedConnectableObtains thePropertyto the style sheet for thisAdaptedConnectable.- Specified by:
getStylesheetin interfaceAdaptedConnectable<R extends Model>- Overrides:
getStylesheetin classAbstractAdaptedConnectableFactory.AbstractAdaptedConnectable<R extends Model,O,M extends Model,E extends java.lang.Enum<E>,A extends AdaptedChild<M>,AdaptedChildFactory<R extends Model,O,M extends Model,E extends java.lang.Enum<E>,A extends AdaptedChild<M>>>- Returns:
Propertyto the style sheet for thisAdaptedConnectable.
-
getStylesheetUrl
public javafx.beans.property.ReadOnlyProperty<java.net.URL> getStylesheetUrl()
Description copied from interface:AdaptedConnectableObtains the
Propertyto the style sheet URL for this visual of thisAdaptedConnectable.May be
nullto indicate no specific styling.- Specified by:
getStylesheetUrlin interfaceAdaptedConnectable<R extends Model>- Overrides:
getStylesheetUrlin classAbstractAdaptedConnectableFactory.AbstractAdaptedConnectable<R extends Model,O,M extends Model,E extends java.lang.Enum<E>,A extends AdaptedChild<M>,AdaptedChildFactory<R extends Model,O,M extends Model,E extends java.lang.Enum<E>,A extends AdaptedChild<M>>>- Returns:
ReadOnlyPropertyto the style sheetURL. May benull.
-
getChildrenGroups
public java.util.List<ChildrenGroup<M,?>> getChildrenGroups()
Description copied from interface:AdaptedChildObtains theChildrenGroupinstances.- Specified by:
getChildrenGroupsin interfaceAdaptedChild<R extends Model>- Returns:
ChildrenGroupinstances.
-
createVisual
public javafx.scene.Node createVisual(AdaptedChildVisualFactoryContext<M> context)
Description copied from interface:AdaptedChildCreates the visualNode.- Specified by:
createVisualin interfaceAdaptedChild<R extends Model>- Parameters:
context-AdaptedChildVisualFactoryContext.- Returns:
- Visual
Node.
-
getDragLatency
public int getDragLatency()
Description copied from interface:AdaptedConnectableObtains the the drag latency.- Specified by:
getDragLatencyin interfaceAdaptedConnectable<R extends Model>- Overrides:
getDragLatencyin classAbstractAdaptedConnectableFactory.AbstractAdaptedConnectable<R extends Model,O,M extends Model,E extends java.lang.Enum<E>,A extends AdaptedChild<M>,AdaptedChildFactory<R extends Model,O,M extends Model,E extends java.lang.Enum<E>,A extends AdaptedChild<M>>>- Returns:
- Drag latency.
-
getSelectOnly
public SelectOnly getSelectOnly()
Description copied from interface:AdaptedConnectableObtains whetherSelectOnly.- Specified by:
getSelectOnlyin interfaceAdaptedConnectable<R extends Model>- Overrides:
getSelectOnlyin classAbstractAdaptedConnectableFactory.AbstractAdaptedConnectable<R extends Model,O,M extends Model,E extends java.lang.Enum<E>,A extends AdaptedChild<M>,AdaptedChildFactory<R extends Model,O,M extends Model,E extends java.lang.Enum<E>,A extends AdaptedChild<M>>>- Returns:
SelectOnlyornullto allow functionality.
-
loadDescendantConnections
protected void loadDescendantConnections(java.util.List<AdaptedConnection<?>> connections)
Description copied from class:AbstractAdaptedConnectableFactory.AbstractAdaptedConnectableLoads the descendantAdaptedConnectioninstances.- Specified by:
loadDescendantConnectionsin classAbstractAdaptedConnectableFactory.AbstractAdaptedConnectable<R extends Model,O,M extends Model,E extends java.lang.Enum<E>,A extends AdaptedChild<M>,AdaptedChildFactory<R extends Model,O,M extends Model,E extends java.lang.Enum<E>,A extends AdaptedChild<M>>>- Parameters:
connections- List to add theAdaptedConnectioninstances.
-
-