edu.cmu.hcii.calo.thinkaloud.WOZFrontEndTaskPanel Class Reference

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

Inheritance diagram for edu.cmu.hcii.calo.thinkaloud.WOZFrontEndTaskPanel:

Inheritance graph
[legend]
Collaboration diagram for edu.cmu.hcii.calo.thinkaloud.WOZFrontEndTaskPanel:

Collaboration graph
[legend]
List of all members.

Detailed Description

The task panel inside the WOZFrontEndFrame.

Author:
Brian Ellis


Public Member Functions

 WOZFrontEndTaskPanel (WizardOfOzFrontEnd frontEnd)
 Constructs a WOZFrontEndTaskPanel attached to the given front-end.
JList getTaskList ()
 Gets the task list.
void setSelectedTask (Task task)
 Sets the selected task to that given.

Private Member Functions

RelativeConstraints[] constraintsForLabelPair (Component label, Component field, Component previousLineField, boolean stretch)
 Gets a pair of RelativeConstraints objects for a label and a text field that will lay them out in the appropriate spots.
JPanel createChangeTaskPanel ()
 <<<<<<< .mine Creates and returns the "Change Task" panel.
JPanel createNewTaskPanel ()
 Creates and returns the "New Task" panel.
void populateChangeTaskPanel (Task task)
 Populates the fields and controls in the "Change Task" panel with the information from the given task.
void resizeToFit (JLabel nameLabel)
 Resizes the given label to have a width of LABEL_WIDTH.
void setup ()
 Sets up the visual appearance of this panel.

Static Private Member Functions

static Calendar getDate (JDateChooser chooser, TimeSpinner spinner)
 Constructs and returns a date using the information in the given JDateChooser and TimeSpinner instances.

Private Attributes

WizardOfOzFrontEnd frontEnd
 The front end this panel reports to.
BindingMaker bm
 A binding maker for layout purposes.
Controls
Swing controls that exist in the panel.

JPanel newTaskPanel
JPanel changeTaskPanel
JList taskList
JPanel taskViewPanel
JTextField nameChangeField
JTextField priorityChangeField
JCheckBox onHoldChangeBox
JCheckBox completeChangeBox
JCheckBox dueDateChangeBox
JDateChooser dateChangeChooser
TimeSpinner timeChangeSpinner
JButton deleteButton
JButton addButton
JButton changeButton

Static Private Attributes

static final long serialVersionUID = -2631720313349085236L
 Prevent serialization collisions.
static final int LABEL_WIDTH = 75
 The width of the labels.
static final int TEXT_FIELD_WIDTH = 34
 The width of the text fields.
static final int BUTTON_WIDTH = 92
 The width of the buttons.

Classes

class  AddButtonActionListener
 An action listener subclass that tells the front-end to remotely add a task when the add button is clicked. More...
class  ChangeButtonActionListener
 An action listener subclass that tells the front-end to remotely change the selected task when the change button is clicked. More...
class  DeleteButtonActionListener
 An action listener subclass that tells the front-end to remotely delete the selected task when the delete button is clicked. More...


Constructor & Destructor Documentation

edu.cmu.hcii.calo.thinkaloud.WOZFrontEndTaskPanel.WOZFrontEndTaskPanel ( WizardOfOzFrontEnd  frontEnd  ) 

Constructs a WOZFrontEndTaskPanel attached to the given front-end.

Parameters:
frontEnd the front-end to attach to


Member Function Documentation

JList edu.cmu.hcii.calo.thinkaloud.WOZFrontEndTaskPanel.getTaskList (  ) 

Gets the task list.

Returns:
the task list

void edu.cmu.hcii.calo.thinkaloud.WOZFrontEndTaskPanel.setSelectedTask ( Task  task  ) 

Sets the selected task to that given.

Parameters:
task the new selected task

static Calendar edu.cmu.hcii.calo.thinkaloud.WOZFrontEndTaskPanel.getDate ( JDateChooser  chooser,
TimeSpinner  spinner 
) [static, private]

Constructs and returns a date using the information in the given JDateChooser and TimeSpinner instances.

Parameters:
chooser the date chooser
spinner the time spinner
Returns:
the date and time represented by a combination of the date chooser and time spinner

RelativeConstraints [] edu.cmu.hcii.calo.thinkaloud.WOZFrontEndTaskPanel.constraintsForLabelPair ( Component  label,
Component  field,
Component  previousLineField,
boolean  stretch 
) [private]

Gets a pair of RelativeConstraints objects for a label and a text field that will lay them out in the appropriate spots.

Parameters:
label the label for this pair
field the field for this pair
previousLineField the field from the previous line, or null if this is the first line
stretch true if the field should stretch all the way to the edge of the window, false otherwise
Returns:
a pair of RelativeConstraints, the first for the label, the second for the field

JPanel edu.cmu.hcii.calo.thinkaloud.WOZFrontEndTaskPanel.createChangeTaskPanel (  )  [private]

<<<<<<< .mine Creates and returns the "Change Task" panel.

Returns:
the "Change Task" panel =======
Parameters:
label 
field 
button 
previousLineField 
stretch 
Returns:
>>>>>>> .r244

JPanel edu.cmu.hcii.calo.thinkaloud.WOZFrontEndTaskPanel.createNewTaskPanel (  )  [private]

Creates and returns the "New Task" panel.

Returns:
the "New Task" panel

void edu.cmu.hcii.calo.thinkaloud.WOZFrontEndTaskPanel.populateChangeTaskPanel ( Task  task  )  [private]

Populates the fields and controls in the "Change Task" panel with the information from the given task.

Parameters:
task the task to use to populate the panel

void edu.cmu.hcii.calo.thinkaloud.WOZFrontEndTaskPanel.resizeToFit ( JLabel  nameLabel  )  [private]

Resizes the given label to have a width of LABEL_WIDTH.

Parameters:
nameLabel the label to resize

void edu.cmu.hcii.calo.thinkaloud.WOZFrontEndTaskPanel.setup (  )  [private]

Sets up the visual appearance of this panel.


Member Data Documentation

final long edu.cmu.hcii.calo.thinkaloud.WOZFrontEndTaskPanel.serialVersionUID = -2631720313349085236L [static, private]

Prevent serialization collisions.

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

final int edu.cmu.hcii.calo.thinkaloud.WOZFrontEndTaskPanel.LABEL_WIDTH = 75 [static, private]

The width of the labels.

final int edu.cmu.hcii.calo.thinkaloud.WOZFrontEndTaskPanel.TEXT_FIELD_WIDTH = 34 [static, private]

The width of the text fields.

final int edu.cmu.hcii.calo.thinkaloud.WOZFrontEndTaskPanel.BUTTON_WIDTH = 92 [static, private]

The width of the buttons.

WizardOfOzFrontEnd edu.cmu.hcii.calo.thinkaloud.WOZFrontEndTaskPanel.frontEnd [private]

The front end this panel reports to.

BindingMaker edu.cmu.hcii.calo.thinkaloud.WOZFrontEndTaskPanel.bm [private]

A binding maker for layout purposes.


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