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>
AdaptedChild
implementation.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AdaptedChildImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javafx.scene.Node
createVisual(AdaptedChildVisualFactoryContext<M> context)
Creates the visualNode
.java.util.List<ChildrenGroup<M,?>>
getChildrenGroups()
Obtains theChildrenGroup
instances.int
getDragLatency()
Obtains the the drag latency.javafx.beans.property.StringProperty
getEditLabel()
Obtains theStringProperty
to edit the label.javafx.beans.property.ReadOnlyStringProperty
getLabel()
Obtains theReadOnlyStringProperty
for the label.SelectOnly
getSelectOnly()
Obtains whetherSelectOnly
.javafx.beans.property.Property<java.lang.String>
getStylesheet()
Obtains theProperty
to the style sheet for thisAdaptedConnectable
.javafx.beans.property.ReadOnlyProperty<java.net.URL>
getStylesheetUrl()
Obtains theProperty
to the style sheet URL for this visual of thisAdaptedConnectable
.protected void
init()
Initialises thisAdaptedModel
.protected void
loadDescendantConnections(java.util.List<AdaptedConnection<?>> connections)
Loads the descendantAdaptedConnection
instances.-
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.AbstractAdaptedModel
Initialises thisAdaptedModel
.
-
getLabel
public javafx.beans.property.ReadOnlyStringProperty getLabel()
Description copied from interface:AdaptedChild
Obtains theReadOnlyStringProperty
for the label.- Specified by:
getLabel
in interfaceAdaptedChild<R extends Model>
- Returns:
StringProperty
for the label. May benull
if no label.
-
getEditLabel
public javafx.beans.property.StringProperty getEditLabel()
Description copied from interface:AdaptedChild
Obtains theStringProperty
to edit the label.- Specified by:
getEditLabel
in interfaceAdaptedChild<R extends Model>
- Returns:
StringProperty
to edit the label. May benull
if label not editable.
-
getStylesheet
public javafx.beans.property.Property<java.lang.String> getStylesheet()
Description copied from interface:AdaptedConnectable
Obtains theProperty
to the style sheet for thisAdaptedConnectable
.- Specified by:
getStylesheet
in interfaceAdaptedConnectable<R extends Model>
- Overrides:
getStylesheet
in 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:
Property
to the style sheet for thisAdaptedConnectable
.
-
getStylesheetUrl
public javafx.beans.property.ReadOnlyProperty<java.net.URL> getStylesheetUrl()
Description copied from interface:AdaptedConnectable
Obtains the
Property
to the style sheet URL for this visual of thisAdaptedConnectable
.May be
null
to indicate no specific styling.- Specified by:
getStylesheetUrl
in interfaceAdaptedConnectable<R extends Model>
- Overrides:
getStylesheetUrl
in 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:
ReadOnlyProperty
to the style sheetURL
. May benull
.
-
getChildrenGroups
public java.util.List<ChildrenGroup<M,?>> getChildrenGroups()
Description copied from interface:AdaptedChild
Obtains theChildrenGroup
instances.- Specified by:
getChildrenGroups
in interfaceAdaptedChild<R extends Model>
- Returns:
ChildrenGroup
instances.
-
createVisual
public javafx.scene.Node createVisual(AdaptedChildVisualFactoryContext<M> context)
Description copied from interface:AdaptedChild
Creates the visualNode
.- Specified by:
createVisual
in interfaceAdaptedChild<R extends Model>
- Parameters:
context
-AdaptedChildVisualFactoryContext
.- Returns:
- Visual
Node
.
-
getDragLatency
public int getDragLatency()
Description copied from interface:AdaptedConnectable
Obtains the the drag latency.- Specified by:
getDragLatency
in interfaceAdaptedConnectable<R extends Model>
- Overrides:
getDragLatency
in 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:AdaptedConnectable
Obtains whetherSelectOnly
.- Specified by:
getSelectOnly
in interfaceAdaptedConnectable<R extends Model>
- Overrides:
getSelectOnly
in 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:
SelectOnly
ornull
to allow functionality.
-
loadDescendantConnections
protected void loadDescendantConnections(java.util.List<AdaptedConnection<?>> connections)
Description copied from class:AbstractAdaptedConnectableFactory.AbstractAdaptedConnectable
Loads the descendantAdaptedConnection
instances.- Specified by:
loadDescendantConnections
in 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 theAdaptedConnection
instances.
-
-