@Generated(value="net.officefloor.model.generate.ModelGenerator") public class WorkTaskToTaskModel extends AbstractModel implements ConnectionModel
Modifier and Type | Class and Description |
---|---|
static class |
WorkTaskToTaskModel.WorkTaskToTaskEvent |
Constructor and Description |
---|
WorkTaskToTaskModel()
Default constructor.
|
WorkTaskToTaskModel(TaskModel task,
WorkTaskModel workTask)
Convenience constructor.
|
WorkTaskToTaskModel(TaskModel task,
WorkTaskModel workTask,
int x,
int y)
Convenience constructor allowing XY initialising.
|
Modifier and Type | Method and Description |
---|---|
void |
connect()
Connects to the
AbstractModel instances. |
TaskModel |
getTask() |
WorkTaskModel |
getWorkTask() |
boolean |
isRemovable()
Indicates if this connection is removable.
|
void |
remove()
Removes connection to the
AbstractModel instances. |
void |
setTask(TaskModel task) |
void |
setWorkTask(WorkTaskModel workTask) |
addItemToList, addPropertyChangeListener, changeField, firePropertyChange, getX, getY, removeItemFromList, removePropertyChangeListener, setX, setY
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addPropertyChangeListener, getX, getY, removePropertyChangeListener, setX, setY
public WorkTaskToTaskModel()
public WorkTaskToTaskModel(TaskModel task, WorkTaskModel workTask)
task
- Task.workTask
- Work task.public WorkTaskToTaskModel(TaskModel task, WorkTaskModel workTask, int x, int y)
task
- Task.workTask
- Work task.x
- Horizontal location.y
- Vertical location.public TaskModel getTask()
public void setTask(TaskModel task)
task
- Task.public WorkTaskModel getWorkTask()
public void setWorkTask(WorkTaskModel workTask)
workTask
- Work task.public boolean isRemovable()
ConnectionModel
isRemovable
in interface ConnectionModel
public void connect()
AbstractModel
instances.connect
in interface ConnectionModel
public void remove()
AbstractModel
instances.remove
in interface ConnectionModel
Copyright © 2005–2016. All rights reserved.