edu.cmu.hcii.calo.view.task.viewer.TaskViewerTaskListCell Class Reference

Inherits edu.cmu.hcii.calo.view.CALOComponent.

Inheritance diagram for edu.cmu.hcii.calo.view.task.viewer.TaskViewerTaskListCell:

Inheritance graph
[legend]
Collaboration diagram for edu.cmu.hcii.calo.view.task.viewer.TaskViewerTaskListCell:

Collaboration graph
[legend]
List of all members.

Detailed Description

A cell in the task list.

This is the class that displays each task, analogous to TaskView in the task pane.

Author:
Brian Ellis


Public Member Functions

 TaskViewerTaskListCell (TaskViewerTaskList taskViewerTaskList, int index, Task task)
 Constructs a TaskViewerTaskListCell with the given list, index, and task.
boolean isSelected ()
 Returns whether this cell is selected.
void setSelected (boolean isSelected)
 Sets whether this cell is selected.
void update ()
 Causes this cell to update its contents based on the state of its represented task.

Private Member Functions

void setup ()
 Sets up the visual appearance of this cell.

Private Attributes

TaskViewerTaskList list
 The list of which this cell is a part.
boolean isSelected = false
 Whether this cell is in its selected (i.e., expanded) state.
int index
 The index of this cell in the enclosing list.
Task task
 The task represented by this cell.
MouseAdapter selectionListener
 The mouse listener that toggles whether this cell is selected.
Controls
Various Swing controls contained in this cell.

JLabel taskNameLabel
JLabel dueDateLabel
IconToggleButton starButton
IconToggleButton completeBox
IconButton deleteButton
IconToggleButton caloAddedButton
JLabel dateAddedLabel
JLabel dateDueLabel
JLabel statusLabel
JList resourceList
JLabel tagsLabelLabel
JLabel tagsLabel
IconButton onHoldButton

Classes

class  OnlyAMockupActionListener
 An action listener that, when invoked, pops up a dialog indicating that the Task Viewer is only a mockup and can't be used to make changes to tasks. More...


Constructor & Destructor Documentation

edu.cmu.hcii.calo.view.task.viewer.TaskViewerTaskListCell.TaskViewerTaskListCell ( TaskViewerTaskList  taskViewerTaskList,
int  index,
Task  task 
)

Constructs a TaskViewerTaskListCell with the given list, index, and task.

Parameters:
taskViewerTaskList the list of which this cell is a part
index the index of this task in the list, used to determine background color
task the task represented by this cell


Member Function Documentation

boolean edu.cmu.hcii.calo.view.task.viewer.TaskViewerTaskListCell.isSelected (  ) 

Returns whether this cell is selected.

Returns:
true if the cell is currently selected, false otherwise

void edu.cmu.hcii.calo.view.task.viewer.TaskViewerTaskListCell.setSelected ( boolean  isSelected  ) 

Sets whether this cell is selected.

Parameters:
isSelected true if the cell should be selected, false otherwise

void edu.cmu.hcii.calo.view.task.viewer.TaskViewerTaskListCell.update (  ) 

Causes this cell to update its contents based on the state of its represented task.

void edu.cmu.hcii.calo.view.task.viewer.TaskViewerTaskListCell.setup (  )  [private]

Sets up the visual appearance of this cell.


Member Data Documentation

TaskViewerTaskList edu.cmu.hcii.calo.view.task.viewer.TaskViewerTaskListCell.list [private]

The list of which this cell is a part.

boolean edu.cmu.hcii.calo.view.task.viewer.TaskViewerTaskListCell.isSelected = false [private]

Whether this cell is in its selected (i.e., expanded) state.

int edu.cmu.hcii.calo.view.task.viewer.TaskViewerTaskListCell.index [private]

The index of this cell in the enclosing list.

We use this to determine the background color we should use for this cell.

Task edu.cmu.hcii.calo.view.task.viewer.TaskViewerTaskListCell.task [private]

The task represented by this cell.

MouseAdapter edu.cmu.hcii.calo.view.task.viewer.TaskViewerTaskListCell.selectionListener [private]

The mouse listener that toggles whether this cell is selected.


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