edu.cmu.hcii.calo.view.task.support.TaskOrdering Class Reference

Collaboration diagram for edu.cmu.hcii.calo.view.task.support.TaskOrdering:

Collaboration graph
[legend]
List of all members.

Detailed Description

A small structure that stores a triad of adjacent tasks, of which the middle has just been reordered, in the order they should now appear in the sidebar.

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.

Author:
Brian Ellis


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.


Constructor & Destructor Documentation

edu.cmu.hcii.calo.view.task.support.TaskOrdering.TaskOrdering ( Task  t  ) 

Constructs a task ordering, setting the reordered task to t.

Parameters:
t the reordered task


Member Function Documentation

Task edu.cmu.hcii.calo.view.task.support.TaskOrdering.getNextTask (  ) 

Returns the task that should appear after the reordered task in the sidebar.

Returns:
the next task

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.

Parameters:
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.

Returns:
the previous task

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.

Parameters:
previousTask the previous task

Task edu.cmu.hcii.calo.view.task.support.TaskOrdering.getReorderedTask (  ) 

Returns the reordered task.

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.

Returns:
whether there is a previous task

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.

Returns:
whether there is a next task

String edu.cmu.hcii.calo.view.task.support.TaskOrdering.toString (  ) 

Returns a string representation of this TaskOrdering.

Useful only for debugging.


Member Data Documentation

Task edu.cmu.hcii.calo.view.task.support.TaskOrdering.reorderedTask [private]

The task that has been reordered between the previous and next tasks.

Task edu.cmu.hcii.calo.view.task.support.TaskOrdering.previousTask [private]

The task that should appear before the reordered one in the sidebar.

Task edu.cmu.hcii.calo.view.task.support.TaskOrdering.nextTask [private]

The task that should appear after the reordered one in the sidebar.


The documentation for this class was generated from the following file:
Generated on Mon Aug 13 15:06:28 2007 for CALO by  doxygen 1.5.2