Package net.officefloor.model.conform
Class TargetItemModel
- java.lang.Object
-
- net.officefloor.model.AbstractModel
-
- net.officefloor.model.conform.TargetItemModel
-
- All Implemented Interfaces:
ItemModel<TargetItemModel>
,Model
@Generated("net.officefloor.model.generate.ModelGenerator") public class TargetItemModel extends AbstractModel implements ItemModel<TargetItemModel>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TargetItemModel.TargetItemEvent
-
Constructor Summary
Constructors Constructor Description TargetItemModel()
Default constructor.TargetItemModel(java.lang.String targetItemName, boolean isInheritable, boolean inherit)
Convenience constructor for new non-linked instance.TargetItemModel(java.lang.String targetItemName, boolean isInheritable, boolean inherit, int x, int y)
Convenience constructor for new non-linked instance allowing XY initialising.TargetItemModel(java.lang.String targetItemName, boolean isInheritable, boolean inherit, ExistingItemToTargetItemModel existingItem)
Convenience constructor.TargetItemModel(java.lang.String targetItemName, boolean isInheritable, boolean inherit, ExistingItemToTargetItemModel existingItem, int x, int y)
Convenience constructor allowing XY initialising.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExistingItemToTargetItemModel
getExistingItem()
boolean
getInherit()
boolean
getIsInheritable()
java.lang.String
getTargetItemName()
RemoveConnectionsAction<TargetItemModel>
removeConnections()
Remove Connections.void
setExistingItem(ExistingItemToTargetItemModel existingItem)
void
setInherit(boolean inherit)
void
setIsInheritable(boolean isInheritable)
void
setTargetItemName(java.lang.String targetItemName)
-
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
-
TargetItemModel
public TargetItemModel()
Default constructor.
-
TargetItemModel
public TargetItemModel(java.lang.String targetItemName, boolean isInheritable, boolean inherit)
Convenience constructor for new non-linked instance.- Parameters:
targetItemName
- Target item name.isInheritable
- Is inheritable.inherit
- Inherit.
-
TargetItemModel
public TargetItemModel(java.lang.String targetItemName, boolean isInheritable, boolean inherit, int x, int y)
Convenience constructor for new non-linked instance allowing XY initialising.- Parameters:
targetItemName
- Target item name.isInheritable
- Is inheritable.inherit
- Inherit.x
- Horizontal location.y
- Vertical location.
-
TargetItemModel
public TargetItemModel(java.lang.String targetItemName, boolean isInheritable, boolean inherit, ExistingItemToTargetItemModel existingItem)
Convenience constructor.- Parameters:
targetItemName
- Target item name.isInheritable
- Is inheritable.inherit
- Inherit.existingItem
- Existing item.
-
TargetItemModel
public TargetItemModel(java.lang.String targetItemName, boolean isInheritable, boolean inherit, ExistingItemToTargetItemModel existingItem, int x, int y)
Convenience constructor allowing XY initialising.- Parameters:
targetItemName
- Target item name.isInheritable
- Is inheritable.inherit
- Inherit.existingItem
- Existing item.x
- Horizontal location.y
- Vertical location.
-
-
Method Detail
-
getTargetItemName
public java.lang.String getTargetItemName()
- Returns:
- Target item name.
-
setTargetItemName
public void setTargetItemName(java.lang.String targetItemName)
- Parameters:
targetItemName
- Target item name.
-
getIsInheritable
public boolean getIsInheritable()
- Returns:
- Is inheritable.
-
setIsInheritable
public void setIsInheritable(boolean isInheritable)
- Parameters:
isInheritable
- Is inheritable.
-
getInherit
public boolean getInherit()
- Returns:
- Inherit.
-
setInherit
public void setInherit(boolean inherit)
- Parameters:
inherit
- Inherit.
-
getExistingItem
public ExistingItemToTargetItemModel getExistingItem()
- Returns:
- Existing item.
-
setExistingItem
public void setExistingItem(ExistingItemToTargetItemModel existingItem)
- Parameters:
existingItem
- Existing item.
-
removeConnections
public RemoveConnectionsAction<TargetItemModel> removeConnections()
Remove Connections.- Specified by:
removeConnections
in interfaceItemModel<TargetItemModel>
- Returns:
RemoveConnectionsAction
to remove theConnectionModel
instances.
-
-