Class WoofResourcesModel
- java.lang.Object
-
- net.officefloor.model.AbstractModel
-
- net.officefloor.woof.model.resources.WoofResourcesModel
-
- All Implemented Interfaces:
ItemModel<WoofResourcesModel>
,Model
@Generated("net.officefloor.model.generate.ModelGenerator") public class WoofResourcesModel extends AbstractModel implements ItemModel<WoofResourcesModel>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
WoofResourcesModel.WoofResourcesEvent
-
Constructor Summary
Constructors Constructor Description WoofResourcesModel()
Default constructor.WoofResourcesModel(WoofResourceModel[] woofResource)
Convenience constructor.WoofResourcesModel(WoofResourceModel[] woofResource, int x, int y)
Convenience constructor allowing XY initialising.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addWoofResource(WoofResourceModel woofResource)
java.util.List<WoofResourceModel>
getWoofResources()
RemoveConnectionsAction<WoofResourcesModel>
removeConnections()
Remove Connections.void
removeWoofResource(WoofResourceModel woofResource)
-
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
-
WoofResourcesModel
public WoofResourcesModel()
Default constructor.
-
WoofResourcesModel
public WoofResourcesModel(WoofResourceModel[] woofResource)
Convenience constructor.- Parameters:
woofResource
- Woof resource.
-
WoofResourcesModel
public WoofResourcesModel(WoofResourceModel[] woofResource, int x, int y)
Convenience constructor allowing XY initialising.- Parameters:
woofResource
- Woof resource.x
- Horizontal location.y
- Vertical location.
-
-
Method Detail
-
getWoofResources
public java.util.List<WoofResourceModel> getWoofResources()
- Returns:
- Woof resource.
-
addWoofResource
public void addWoofResource(WoofResourceModel woofResource)
- Parameters:
woofResource
- Woof resource.
-
removeWoofResource
public void removeWoofResource(WoofResourceModel woofResource)
- Parameters:
woofResource
- Woof resource.
-
removeConnections
public RemoveConnectionsAction<WoofResourcesModel> removeConnections()
Remove Connections.- Specified by:
removeConnections
in interfaceItemModel<WoofResourcesModel>
- Returns:
RemoveConnectionsAction
to remove theConnectionModel
instances.
-
-