Package net.officefloor.model.conform
Class ExistingModel
- java.lang.Object
-
- net.officefloor.model.AbstractModel
-
- net.officefloor.model.conform.ExistingModel
-
- All Implemented Interfaces:
ItemModel<ExistingModel>
,Model
@Generated("net.officefloor.model.generate.ModelGenerator") public class ExistingModel extends AbstractModel implements ItemModel<ExistingModel>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ExistingModel.ExistingEvent
-
Constructor Summary
Constructors Constructor Description ExistingModel()
Default constructor.ExistingModel(ExistingItemModel[] existingItem)
Convenience constructor.ExistingModel(ExistingItemModel[] existingItem, int x, int y)
Convenience constructor allowing XY initialising.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addExistingItem(ExistingItemModel existingItem)
java.util.List<ExistingItemModel>
getExistingItems()
RemoveConnectionsAction<ExistingModel>
removeConnections()
Remove Connections.void
removeExistingItem(ExistingItemModel existingItem)
-
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
-
ExistingModel
public ExistingModel()
Default constructor.
-
ExistingModel
public ExistingModel(ExistingItemModel[] existingItem)
Convenience constructor.- Parameters:
existingItem
- Existing item.
-
ExistingModel
public ExistingModel(ExistingItemModel[] existingItem, int x, int y)
Convenience constructor allowing XY initialising.- Parameters:
existingItem
- Existing item.x
- Horizontal location.y
- Vertical location.
-
-
Method Detail
-
getExistingItems
public java.util.List<ExistingItemModel> getExistingItems()
- Returns:
- Existing item.
-
addExistingItem
public void addExistingItem(ExistingItemModel existingItem)
- Parameters:
existingItem
- Existing item.
-
removeExistingItem
public void removeExistingItem(ExistingItemModel existingItem)
- Parameters:
existingItem
- Existing item.
-
removeConnections
public RemoveConnectionsAction<ExistingModel> removeConnections()
Remove Connections.- Specified by:
removeConnections
in interfaceItemModel<ExistingModel>
- Returns:
RemoveConnectionsAction
to remove theConnectionModel
instances.
-
-