edu.cmu.hcii.calo.view.task.ExpandedTaskInfoPanel Class Reference

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

Inheritance diagram for edu.cmu.hcii.calo.view.task.ExpandedTaskInfoPanel:

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

Collaboration graph
[legend]
List of all members.

Detailed Description

The panel that contains controls visible only when a TaskView is in its expanded state.

Author:
Brian Ellis


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.


Constructor & Destructor Documentation

edu.cmu.hcii.calo.view.task.ExpandedTaskInfoPanel.ExpandedTaskInfoPanel ( Task  t  ) 

Constructs an ExpandedTaskInfoPanel for the given task.

Parameters:
t the task to represent with this panel


Member Function Documentation

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.

Parameters:
tags the set of tags to stringify
Returns:
the string representation

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.

Parameters:
tags the string to make into a Set
Returns:
the Set of tags

void edu.cmu.hcii.calo.view.task.ExpandedTaskInfoPanel.addMouseListenerToComponents ( MouseListener  l  ) 

Adds the given mouse listener to every component in this panel.

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


Member Data Documentation

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]

Prevent serialization collisions.

Reimplemented from edu.cmu.hcii.calo.view.CALOComponent.

Task edu.cmu.hcii.calo.view.task.ExpandedTaskInfoPanel.task [private]

The task associated with this panel's parent TaskView.


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