Class AdaptedConnectionFactory.AdaptedConnectionImpl<R extends Model,O,S extends Model,C extends ConnectionModel,E extends java.lang.Enum<E>>
- java.lang.Object
-
- net.officefloor.gef.editor.internal.models.AbstractAdaptedFactory.AbstractAdaptedModel<R,O,C,E,AdaptedConnection<C>,AdaptedConnectionFactory<R,O,S,C,E>>
-
- net.officefloor.gef.editor.internal.models.AdaptedConnectionFactory.AdaptedConnectionImpl<R,O,S,C,E>
-
- All Implemented Interfaces:
AdaptedConnection<C>,AdaptedModel<C>,ModelActionContext<R,O,C>
- Enclosing class:
- AdaptedConnectionFactory<R extends Model,O,S extends Model,C extends ConnectionModel,E extends java.lang.Enum<E>>
public static class AdaptedConnectionFactory.AdaptedConnectionImpl<R extends Model,O,S extends Model,C extends ConnectionModel,E extends java.lang.Enum<E>> extends AbstractAdaptedFactory.AbstractAdaptedModel<R,O,C,E,AdaptedConnection<C>,AdaptedConnectionFactory<R,O,S,C,E>> implements AdaptedConnection<C>, ModelActionContext<R,O,C>
AdaptedConnectionimplementation.
-
-
Constructor Summary
Constructors Constructor Description AdaptedConnectionImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanRemove()Indicates whether able to remove theConnectionModel.AdaptedModel<C>getAdaptedModel()Obtains theAdaptedModel.AdaptedConnectable<?>getSource()Obtains the sourceAdaptedConnectable.AdaptedConnectable<?>getTarget()Obtains the targetAdaptedConnectable.protected voidinit()Initialises thisAdaptedModel.voidoverlay(OverlayVisualFactory overlayVisualFactory)Shows an overlay at the position of the action.voidremove()Removes theConnectionModel.-
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.AdaptedModel
getErrorHandler, 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.- Specified by:
initin classAbstractAdaptedFactory.AbstractAdaptedModel<R extends Model,O,C extends ConnectionModel,E extends java.lang.Enum<E>,AdaptedConnection<C extends ConnectionModel>,AdaptedConnectionFactory<R extends Model,O,S extends Model,C extends ConnectionModel,E extends java.lang.Enum<E>>>
-
getSource
public AdaptedConnectable<?> getSource()
Description copied from interface:AdaptedConnectionObtains the sourceAdaptedConnectable.- Specified by:
getSourcein interfaceAdaptedConnection<R extends Model>- Returns:
- Source
AdaptedConnectable.
-
getTarget
public AdaptedConnectable<?> getTarget()
Description copied from interface:AdaptedConnectionObtains the targetAdaptedConnectable.- Specified by:
getTargetin interfaceAdaptedConnection<R extends Model>- Returns:
- Target
AdaptedConnectable.
-
canRemove
public boolean canRemove()
Description copied from interface:AdaptedConnectionIndicates whether able to remove theConnectionModel.- Specified by:
canRemovein interfaceAdaptedConnection<R extends Model>- Returns:
trueif able to remove theConnectionModel.
-
remove
public void remove()
Description copied from interface:AdaptedConnectionRemoves theConnectionModel.- Specified by:
removein interfaceAdaptedConnection<R extends Model>
-
getAdaptedModel
public AdaptedModel<C> getAdaptedModel()
Description copied from interface:ModelActionContextObtains the
AdaptedModel.Will only be
nullif action is to create aModel.- Specified by:
getAdaptedModelin interfaceModelActionContext<R extends Model,O,S extends Model>- Returns:
AdaptedModelornull.
-
overlay
public void overlay(OverlayVisualFactory overlayVisualFactory)
Description copied from interface:ModelActionContextShows an overlay at the position of the action.- Specified by:
overlayin interfaceModelActionContext<R extends Model,O,S extends Model>- Parameters:
overlayVisualFactory-OverlayVisualFactory.
-
-