Package net.officefloor.model.section
Class ManagedFunctionToFunctionModel
- java.lang.Object
-
- net.officefloor.model.AbstractModel
-
- net.officefloor.model.section.ManagedFunctionToFunctionModel
-
- All Implemented Interfaces:
ConnectionModel
,Model
@Generated("net.officefloor.model.generate.ModelGenerator") public class ManagedFunctionToFunctionModel extends AbstractModel implements ConnectionModel
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ManagedFunctionToFunctionModel.ManagedFunctionToFunctionEvent
-
Constructor Summary
Constructors Constructor Description ManagedFunctionToFunctionModel()
Default constructor.ManagedFunctionToFunctionModel(FunctionModel function, ManagedFunctionModel managedFunction)
Convenience constructor.ManagedFunctionToFunctionModel(FunctionModel function, ManagedFunctionModel managedFunction, int x, int y)
Convenience constructor allowing XY initialising.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
connect()
Connects to theAbstractModel
instances.FunctionModel
getFunction()
ManagedFunctionModel
getManagedFunction()
boolean
isRemovable()
Indicates if this connection is removable.void
remove()
Removes connection to theAbstractModel
instances.void
setFunction(FunctionModel function)
void
setManagedFunction(ManagedFunctionModel managedFunction)
-
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
-
ManagedFunctionToFunctionModel
public ManagedFunctionToFunctionModel()
Default constructor.
-
ManagedFunctionToFunctionModel
public ManagedFunctionToFunctionModel(FunctionModel function, ManagedFunctionModel managedFunction)
Convenience constructor.- Parameters:
function
- Function.managedFunction
- Managed function.
-
ManagedFunctionToFunctionModel
public ManagedFunctionToFunctionModel(FunctionModel function, ManagedFunctionModel managedFunction, int x, int y)
Convenience constructor allowing XY initialising.- Parameters:
function
- Function.managedFunction
- Managed function.x
- Horizontal location.y
- Vertical location.
-
-
Method Detail
-
getFunction
public FunctionModel getFunction()
- Returns:
- Function.
-
setFunction
public void setFunction(FunctionModel function)
- Parameters:
function
- Function.
-
getManagedFunction
public ManagedFunctionModel getManagedFunction()
- Returns:
- Managed function.
-
setManagedFunction
public void setManagedFunction(ManagedFunctionModel managedFunction)
- Parameters:
managedFunction
- Managed function.
-
isRemovable
public boolean isRemovable()
Description copied from interface:ConnectionModel
Indicates if this connection is removable.- Specified by:
isRemovable
in interfaceConnectionModel
- Returns:
- Indicates if removable.
-
connect
public void connect()
Connects to theAbstractModel
instances.- Specified by:
connect
in interfaceConnectionModel
-
remove
public void remove()
Removes connection to theAbstractModel
instances.- Specified by:
remove
in interfaceConnectionModel
-
-