Inheritance diagram for edu.cmu.hcii.calo.view.task.ExpandedTaskInfoPanel:
Public Member Functions | |
ExpandedTaskInfoPanel (Task t) | |
Constructs an ExpandedTaskInfoPanel for the given task. | |
void | addMouseListenerToComponents (MouseListener l) |
Adds the given mouse listener to every component in this panel. | |
void | update () |
Tells this panel to update its appearance based on the task state. | |
Private Member Functions | |
void | setup () |
Sets up the visual appearance of this panel. | |
Static Private Member Functions | |
static String | getTagsAsString (Set< String > tags) |
Returns a string representation of the given tags suitable for display in the tags field. | |
static Set< String > | getTagsAsSet (String tags) |
Returns the Set of tags represented by the given string, which should be in the same format as the string representation returned by getTagsAsString(). | |
Private Attributes | |
Task | task |
The task associated with this panel's parent TaskView. | |
Controls | |
Various controls in this panel. | |
JList | resourceList |
JLabel | tagsLabelLabel |
JLabel | tagsLabel |
JTextField | tagsField |
IconButton | addResourceButton |
Static Private Attributes | |
static final String | NO_TAGS_STRING = "(no tags)" |
The string to display when a task has no defined tags. | |
static final long | serialVersionUID = 1L |
Prevent serialization collisions. |
edu.cmu.hcii.calo.view.task.ExpandedTaskInfoPanel.ExpandedTaskInfoPanel | ( | Task | t | ) |
Constructs an ExpandedTaskInfoPanel for the given task.
t | the task to represent with this panel |
static String edu.cmu.hcii.calo.view.task.ExpandedTaskInfoPanel.getTagsAsString | ( | Set< String > | tags | ) | [static, private] |
Returns a string representation of the given tags suitable for display in the tags field.
tags | the set of tags to stringify |
static Set<String> edu.cmu.hcii.calo.view.task.ExpandedTaskInfoPanel.getTagsAsSet | ( | String | tags | ) | [static, private] |
Returns the Set of tags represented by the given string, which should be in the same format as the string representation returned by getTagsAsString().
Specifically, the string should be a comma-delimited list of tags with arbitrary whitespace before or after the commas.
tags | the string to make into a Set |
void edu.cmu.hcii.calo.view.task.ExpandedTaskInfoPanel.addMouseListenerToComponents | ( | MouseListener | l | ) |
Adds the given mouse listener to every component in this panel.
l | the listener to add |
void edu.cmu.hcii.calo.view.task.ExpandedTaskInfoPanel.update | ( | ) |
Tells this panel to update its appearance based on the task state.
void edu.cmu.hcii.calo.view.task.ExpandedTaskInfoPanel.setup | ( | ) | [private] |
Sets up the visual appearance of this panel.
final String edu.cmu.hcii.calo.view.task.ExpandedTaskInfoPanel.NO_TAGS_STRING = "(no tags)" [static, private] |
The string to display when a task has no defined tags.
final long edu.cmu.hcii.calo.view.task.ExpandedTaskInfoPanel.serialVersionUID = 1L [static, private] |
The task associated with this panel's parent TaskView.