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

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

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

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

Collaboration graph
[legend]
List of all members.

Detailed Description

The notification panel inside the WOZFrontEndFrame.

Author:
Brian Ellis


Public Member Functions

 WOZFrontEndNotificationPanel (WizardOfOzFrontEnd frontEnd)
 Construct a WOZFrontEndNotificationPanel attached to the current front-end.
JList getNotificationList ()
 Gets the notification list.
void setSelectedNotification (Notification note)
 Sets the selected notification 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 createChangeNotificationPanel ()
 Creates and returns the "Change Notification" panel.
JPanel createNewNotificationPanel ()
 Creates and returns the "New Notification" panel.
void populateChangeNotificationPanel (Notification note)
 Populates the "Change Notification" panel with data from the given notification.
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.

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.

JTextField nameChangeField
JTextField textChangeField
JTextField personChangeField
JTextField priorityChangeField
JPanel newNotificationPanel
JPanel changeNotificationPanel
JList notificationList
JPanel notificationViewPanel
JButton deleteButton
JButton addButton
JButton changeButton

Static Private Attributes

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

Classes

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


Constructor & Destructor Documentation

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

Construct a WOZFrontEndNotificationPanel attached to the current front-end.

Parameters:
frontEnd the front-end to attach to


Member Function Documentation

JList edu.cmu.hcii.calo.thinkaloud.WOZFrontEndNotificationPanel.getNotificationList (  ) 

Gets the notification list.

Returns:
the notification list

void edu.cmu.hcii.calo.thinkaloud.WOZFrontEndNotificationPanel.setSelectedNotification ( Notification  note  ) 

Sets the selected notification to that given.

Parameters:
note the new selected notification

RelativeConstraints [] edu.cmu.hcii.calo.thinkaloud.WOZFrontEndNotificationPanel.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.WOZFrontEndNotificationPanel.createChangeNotificationPanel (  )  [private]

Creates and returns the "Change Notification" panel.

Returns:
the "Change Notification" panel

JPanel edu.cmu.hcii.calo.thinkaloud.WOZFrontEndNotificationPanel.createNewNotificationPanel (  )  [private]

Creates and returns the "New Notification" panel.

Returns:
the "New Notification" panel

void edu.cmu.hcii.calo.thinkaloud.WOZFrontEndNotificationPanel.populateChangeNotificationPanel ( Notification  note  )  [private]

Populates the "Change Notification" panel with data from the given notification.

Parameters:
note the notification to use when populating the panel

void edu.cmu.hcii.calo.thinkaloud.WOZFrontEndNotificationPanel.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.WOZFrontEndNotificationPanel.setup (  )  [private]

Sets up the visual appearance of this panel.


Member Data Documentation

final long edu.cmu.hcii.calo.thinkaloud.WOZFrontEndNotificationPanel.serialVersionUID = 5789542579865178675L [static, private]

Prevent serialization collisions.

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

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

The width of the labels on the text fields.

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

The width of the text fields.

final int edu.cmu.hcii.calo.thinkaloud.WOZFrontEndNotificationPanel.BUTTON_WIDTH = 122 [static, private]

The width of the buttons.

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

The front end this panel reports to.

BindingMaker edu.cmu.hcii.calo.thinkaloud.WOZFrontEndNotificationPanel.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:20 2007 for CALO by  doxygen 1.5.2