Package net.officefloor.model.conform
Class ExistingItemModel
- java.lang.Object
-
- net.officefloor.model.AbstractModel
-
- net.officefloor.model.conform.ExistingItemModel
-
- All Implemented Interfaces:
ItemModel<ExistingItemModel>
,Model
@Generated("net.officefloor.model.generate.ModelGenerator") public class ExistingItemModel extends AbstractModel implements ItemModel<ExistingItemModel>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ExistingItemModel.ExistingItemEvent
-
Constructor Summary
Constructors Constructor Description ExistingItemModel()
Default constructor.ExistingItemModel(java.lang.String existingItemName)
Convenience constructor for new non-linked instance.ExistingItemModel(java.lang.String existingItemName, int x, int y)
Convenience constructor for new non-linked instance allowing XY initialising.ExistingItemModel(java.lang.String existingItemName, ExistingItemToTargetItemModel targetItem)
Convenience constructor.ExistingItemModel(java.lang.String existingItemName, ExistingItemToTargetItemModel targetItem, int x, int y)
Convenience constructor allowing XY initialising.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getExistingItemName()
ExistingItemToTargetItemModel
getTargetItem()
RemoveConnectionsAction<ExistingItemModel>
removeConnections()
Remove Connections.void
setExistingItemName(java.lang.String existingItemName)
void
setTargetItem(ExistingItemToTargetItemModel 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
-
ExistingItemModel
public ExistingItemModel()
Default constructor.
-
ExistingItemModel
public ExistingItemModel(java.lang.String existingItemName)
Convenience constructor for new non-linked instance.- Parameters:
existingItemName
- Existing item name.
-
ExistingItemModel
public ExistingItemModel(java.lang.String existingItemName, int x, int y)
Convenience constructor for new non-linked instance allowing XY initialising.- Parameters:
existingItemName
- Existing item name.x
- Horizontal location.y
- Vertical location.
-
ExistingItemModel
public ExistingItemModel(java.lang.String existingItemName, ExistingItemToTargetItemModel targetItem)
Convenience constructor.- Parameters:
existingItemName
- Existing item name.targetItem
- Target item.
-
ExistingItemModel
public ExistingItemModel(java.lang.String existingItemName, ExistingItemToTargetItemModel targetItem, int x, int y)
Convenience constructor allowing XY initialising.- Parameters:
existingItemName
- Existing item name.targetItem
- Target item.x
- Horizontal location.y
- Vertical location.
-
-
Method Detail
-
getExistingItemName
public java.lang.String getExistingItemName()
- Returns:
- Existing item name.
-
setExistingItemName
public void setExistingItemName(java.lang.String existingItemName)
- Parameters:
existingItemName
- Existing item name.
-
getTargetItem
public ExistingItemToTargetItemModel getTargetItem()
- Returns:
- Target item.
-
setTargetItem
public void setTargetItem(ExistingItemToTargetItemModel targetItem)
- Parameters:
targetItem
- Target item.
-
removeConnections
public RemoveConnectionsAction<ExistingItemModel> removeConnections()
Remove Connections.- Specified by:
removeConnections
in interfaceItemModel<ExistingItemModel>
- Returns:
RemoveConnectionsAction
to remove theConnectionModel
instances.
-
-