Class DisconnectChange<T>
java.lang.Object
net.officefloor.model.impl.change.AbstractChange<T>
net.officefloor.model.impl.change.DisconnectChange<T>
- All Implemented Interfaces:
Change<T>
Change to simplify removing ConnectionModel instances.- Author:
- Daniel Sagenschneider
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapply()Applies thisChange.protected abstract voidpopulateRemovedConnections(List<ConnectionModel> connList) Populates the removedConnectionModel.voidrevert()Reverts thisChange(after being applied).Methods inherited from class net.officefloor.model.impl.change.AbstractChange
canApply, getChangeDescription, getConflicts, getTarget, setConflicts
-
Constructor Details
-
DisconnectChange
Initiate.- Parameters:
target- Target to removeConnectionModelinstances.
-
-
Method Details
-
apply
public void apply()Description copied from interface:ChangeApplies thisChange. -
populateRemovedConnections
Populates the removedConnectionModel.- Parameters:
connList- List to populate with the removedConnectionModelinstances.
-
revert
public void revert()Description copied from interface:ChangeReverts this
Change(after being applied).This enables do/undo functionality.
-