Package net.officefloor.model.conform
Class ExistingItemToTargetItemModel
- java.lang.Object
-
- net.officefloor.model.AbstractModel
-
- net.officefloor.model.conform.ExistingItemToTargetItemModel
-
- All Implemented Interfaces:
ConnectionModel,Model
@Generated("net.officefloor.model.generate.ModelGenerator") public class ExistingItemToTargetItemModel extends AbstractModel implements ConnectionModel
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classExistingItemToTargetItemModel.ExistingItemToTargetItemEvent
-
Constructor Summary
Constructors Constructor Description ExistingItemToTargetItemModel()Default constructor.ExistingItemToTargetItemModel(ExistingItemModel existingItem, TargetItemModel targetItem)Convenience constructor.ExistingItemToTargetItemModel(ExistingItemModel existingItem, TargetItemModel targetItem, int x, int y)Convenience constructor allowing XY initialising.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconnect()Connects to theAbstractModelinstances.ExistingItemModelgetExistingItem()TargetItemModelgetTargetItem()booleanisRemovable()Indicates if this connection is removable.voidremove()Removes connection to theAbstractModelinstances.voidsetExistingItem(ExistingItemModel existingItem)voidsetTargetItem(TargetItemModel targetItem)-
Methods inherited from class net.officefloor.model.AbstractModel
addItemToList, addPropertyChangeListener, changeField, firePropertyChange, getX, getY, removeItemFromList, removePropertyChangeListener, setX, setY
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.officefloor.model.Model
addPropertyChangeListener, getX, getY, removePropertyChangeListener, setX, setY
-
-
-
-
Constructor Detail
-
ExistingItemToTargetItemModel
public ExistingItemToTargetItemModel()
Default constructor.
-
ExistingItemToTargetItemModel
public ExistingItemToTargetItemModel(ExistingItemModel existingItem, TargetItemModel targetItem)
Convenience constructor.- Parameters:
existingItem- Existing item.targetItem- Target item.
-
ExistingItemToTargetItemModel
public ExistingItemToTargetItemModel(ExistingItemModel existingItem, TargetItemModel targetItem, int x, int y)
Convenience constructor allowing XY initialising.- Parameters:
existingItem- Existing item.targetItem- Target item.x- Horizontal location.y- Vertical location.
-
-
Method Detail
-
getExistingItem
public ExistingItemModel getExistingItem()
- Returns:
- Existing item.
-
setExistingItem
public void setExistingItem(ExistingItemModel existingItem)
- Parameters:
existingItem- Existing item.
-
getTargetItem
public TargetItemModel getTargetItem()
- Returns:
- Target item.
-
setTargetItem
public void setTargetItem(TargetItemModel targetItem)
- Parameters:
targetItem- Target item.
-
isRemovable
public boolean isRemovable()
Description copied from interface:ConnectionModelIndicates if this connection is removable.- Specified by:
isRemovablein interfaceConnectionModel- Returns:
- Indicates if removable.
-
connect
public void connect()
Connects to theAbstractModelinstances.- Specified by:
connectin interfaceConnectionModel
-
remove
public void remove()
Removes connection to theAbstractModelinstances.- Specified by:
removein interfaceConnectionModel
-
-