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>
AdaptedConnection
implementation.
-
-
Constructor Summary
Constructors Constructor Description AdaptedConnectionImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canRemove()
Indicates whether able to remove theConnectionModel
.AdaptedModel<C>
getAdaptedModel()
Obtains theAdaptedModel
.AdaptedConnectable<?>
getSource()
Obtains the sourceAdaptedConnectable
.AdaptedConnectable<?>
getTarget()
Obtains the targetAdaptedConnectable
.protected void
init()
Initialises thisAdaptedModel
.void
overlay(OverlayVisualFactory overlayVisualFactory)
Shows an overlay at the position of the action.void
remove()
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.AbstractAdaptedModel
Initialises thisAdaptedModel
.- Specified by:
init
in 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:AdaptedConnection
Obtains the sourceAdaptedConnectable
.- Specified by:
getSource
in interfaceAdaptedConnection<R extends Model>
- Returns:
- Source
AdaptedConnectable
.
-
getTarget
public AdaptedConnectable<?> getTarget()
Description copied from interface:AdaptedConnection
Obtains the targetAdaptedConnectable
.- Specified by:
getTarget
in interfaceAdaptedConnection<R extends Model>
- Returns:
- Target
AdaptedConnectable
.
-
canRemove
public boolean canRemove()
Description copied from interface:AdaptedConnection
Indicates whether able to remove theConnectionModel
.- Specified by:
canRemove
in interfaceAdaptedConnection<R extends Model>
- Returns:
true
if able to remove theConnectionModel
.
-
remove
public void remove()
Description copied from interface:AdaptedConnection
Removes theConnectionModel
.- Specified by:
remove
in interfaceAdaptedConnection<R extends Model>
-
getAdaptedModel
public AdaptedModel<C> getAdaptedModel()
Description copied from interface:ModelActionContext
Obtains the
AdaptedModel
.Will only be
null
if action is to create aModel
.- Specified by:
getAdaptedModel
in interfaceModelActionContext<R extends Model,O,S extends Model>
- Returns:
AdaptedModel
ornull
.
-
overlay
public void overlay(OverlayVisualFactory overlayVisualFactory)
Description copied from interface:ModelActionContext
Shows an overlay at the position of the action.- Specified by:
overlay
in interfaceModelActionContext<R extends Model,O,S extends Model>
- Parameters:
overlayVisualFactory
-OverlayVisualFactory
.
-
-