Inheritance diagram for edu.cmu.hcii.calo.view.task.viewer.TaskViewerTaskList:
We can't actually use a JList for this because it uses its cells as "rubber stamps" for painting but does not actually keep them resident in the view, which makes them non-interactive.
Public Member Functions | |
TaskViewerTaskList () | |
Constructs a TaskViewerTaskList. | |
void | update () |
Updates the tasks contained in the task list from the TaskManager. | |
Private Member Functions | |
CALOComponent | createListCell (int index, Task task) |
Creates and returns a new TaskViewerTaskListCell for the given task at the given index. | |
Private Attributes | |
List< TasklikeObject > | tasks |
The tasks represented by this list. |
edu.cmu.hcii.calo.view.task.viewer.TaskViewerTaskList.TaskViewerTaskList | ( | ) |
Constructs a TaskViewerTaskList.
void edu.cmu.hcii.calo.view.task.viewer.TaskViewerTaskList.update | ( | ) |
Updates the tasks contained in the task list from the TaskManager.
Should be called whenever the task manager's state changes.
CALOComponent edu.cmu.hcii.calo.view.task.viewer.TaskViewerTaskList.createListCell | ( | int | index, | |
Task | task | |||
) | [private] |
Creates and returns a new TaskViewerTaskListCell for the given task at the given index.
The index is only used to determine the background color of the list cell: odd-numbered indices have the default list background, while even-numbered indices use a light blue background.
index | the index of the task in sorted order, needed to determine the cell's background color | |
task | the task to be represented by this cell |
The tasks represented by this list.
Automatically refreshed from the TaskManager upon update.