Inheritance diagram for edu.cmu.hcii.calo.thinkaloud.WOZFrontEndNotificationPanel:
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... |
edu.cmu.hcii.calo.thinkaloud.WOZFrontEndNotificationPanel.WOZFrontEndNotificationPanel | ( | WizardOfOzFrontEnd | frontEnd | ) |
Construct a WOZFrontEndNotificationPanel attached to the current front-end.
frontEnd | the front-end to attach to |
JList edu.cmu.hcii.calo.thinkaloud.WOZFrontEndNotificationPanel.getNotificationList | ( | ) |
Gets the notification list.
void edu.cmu.hcii.calo.thinkaloud.WOZFrontEndNotificationPanel.setSelectedNotification | ( | Notification | note | ) |
Sets the selected notification to that given.
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.
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 |
JPanel edu.cmu.hcii.calo.thinkaloud.WOZFrontEndNotificationPanel.createChangeNotificationPanel | ( | ) | [private] |
Creates and returns the "Change Notification" panel.
JPanel edu.cmu.hcii.calo.thinkaloud.WOZFrontEndNotificationPanel.createNewNotificationPanel | ( | ) | [private] |
Creates and 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.
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.
nameLabel | the label to resize |
void edu.cmu.hcii.calo.thinkaloud.WOZFrontEndNotificationPanel.setup | ( | ) | [private] |
Sets up the visual appearance of this panel.
final long edu.cmu.hcii.calo.thinkaloud.WOZFrontEndNotificationPanel.serialVersionUID = 5789542579865178675L [static, private] |
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.
The front end this panel reports to.
BindingMaker edu.cmu.hcii.calo.thinkaloud.WOZFrontEndNotificationPanel.bm [private] |
A binding maker for layout purposes.