If the reordered task should be first or last in the sidebar's task view, then either the previous or next task will be null
.
Public Member Functions | |
TaskOrdering (Task t) | |
Constructs a task ordering, setting the reordered task to t . | |
Task | getNextTask () |
Returns the task that should appear after the reordered task in the sidebar. | |
void | setNextTask (Task nextTask) |
Sets the task that should appear after the reordered task in the sidebar. | |
Task | getPreviousTask () |
Returns the task that should appear before the reordered task in the sidebar. | |
void | setPreviousTask (Task previousTask) |
Sets the task that should appear before the reordered task in the sidebar. | |
Task | getReorderedTask () |
Returns the reordered task. | |
boolean | hasPreviousTask () |
Returns true if the task that should appear before the reordered task in the sidebar is null , false otherwise. | |
boolean | hasNextTask () |
Returns true if the task that should apprear after the reordered task in the sidebar is null , false otherwise. | |
String | toString () |
Returns a string representation of this TaskOrdering. | |
Private Attributes | |
Task | reorderedTask |
The task that has been reordered between the previous and next tasks. | |
Task | previousTask |
The task that should appear before the reordered one in the sidebar. | |
Task | nextTask |
The task that should appear after the reordered one in the sidebar. |
edu.cmu.hcii.calo.view.task.support.TaskOrdering.TaskOrdering | ( | Task | t | ) |
Constructs a task ordering, setting the reordered task to t
.
t | the reordered task |
Task edu.cmu.hcii.calo.view.task.support.TaskOrdering.getNextTask | ( | ) |
Returns the task that should appear after the reordered task in the sidebar.
void edu.cmu.hcii.calo.view.task.support.TaskOrdering.setNextTask | ( | Task | nextTask | ) |
Sets the task that should appear after the reordered task in the sidebar.
nextTask | the next task |
Task edu.cmu.hcii.calo.view.task.support.TaskOrdering.getPreviousTask | ( | ) |
Returns the task that should appear before the reordered task in the sidebar.
void edu.cmu.hcii.calo.view.task.support.TaskOrdering.setPreviousTask | ( | Task | previousTask | ) |
Sets the task that should appear before the reordered task in the sidebar.
previousTask | the previous task |
Task edu.cmu.hcii.calo.view.task.support.TaskOrdering.getReorderedTask | ( | ) |
Returns the reordered task.
boolean edu.cmu.hcii.calo.view.task.support.TaskOrdering.hasPreviousTask | ( | ) |
Returns true
if the task that should appear before the reordered task in the sidebar is null
, false
otherwise.
boolean edu.cmu.hcii.calo.view.task.support.TaskOrdering.hasNextTask | ( | ) |
Returns true
if the task that should apprear after the reordered task in the sidebar is null
, false
otherwise.
String edu.cmu.hcii.calo.view.task.support.TaskOrdering.toString | ( | ) |
Returns a string representation of this TaskOrdering.
Useful only for debugging.
The task that has been reordered between the previous and next tasks.
The task that should appear before the reordered one in the sidebar.
The task that should appear after the reordered one in the sidebar.