Inheritance diagram for edu.cmu.hcii.calo.thinkaloud.WOZFrontEndTaskPanel:
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... |
edu.cmu.hcii.calo.thinkaloud.WOZFrontEndTaskPanel.WOZFrontEndTaskPanel | ( | WizardOfOzFrontEnd | frontEnd | ) |
Constructs a WOZFrontEndTaskPanel attached to the given front-end.
frontEnd | the front-end to attach to |
JList edu.cmu.hcii.calo.thinkaloud.WOZFrontEndTaskPanel.getTaskList | ( | ) |
Gets the task list.
void edu.cmu.hcii.calo.thinkaloud.WOZFrontEndTaskPanel.setSelectedTask | ( | Task | task | ) |
Sets the selected task to that given.
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.
chooser | the date chooser | |
spinner | the 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.
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.WOZFrontEndTaskPanel.createChangeTaskPanel | ( | ) | [private] |
<<<<<<< .mine Creates and returns the "Change Task" panel.
label | ||
field | ||
button | ||
previousLineField | ||
stretch |
JPanel edu.cmu.hcii.calo.thinkaloud.WOZFrontEndTaskPanel.createNewTaskPanel | ( | ) | [private] |
Creates and 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.
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.
nameLabel | the label to resize |
void edu.cmu.hcii.calo.thinkaloud.WOZFrontEndTaskPanel.setup | ( | ) | [private] |
Sets up the visual appearance of this panel.
final long edu.cmu.hcii.calo.thinkaloud.WOZFrontEndTaskPanel.serialVersionUID = -2631720313349085236L [static, private] |
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.
The front end this panel reports to.
BindingMaker edu.cmu.hcii.calo.thinkaloud.WOZFrontEndTaskPanel.bm [private] |
A binding maker for layout purposes.