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