Inheritance diagram for edu.cmu.hcii.calo.view.task.viewer.TaskViewerTaskListCell:
This is the class that displays each task, analogous to TaskView in the task pane.
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... |
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.
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 |
Returns whether this cell is selected.
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.
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.
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.
The index of this cell in the enclosing list.
We use this to determine the background color we should use for this cell.
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.