Public Member Functions | |
PutOnHoldDialog () | |
Constructs a PutOnHoldDialog. | |
PutOnHoldDialog (Dialog d) | |
Constructs a PutOnHoldDialog with the given dialog. | |
PutOnHoldDialog (Dialog d, boolean flag) | |
Constructs a PutOnHoldDialog with the given dialog and modal state. | |
PutOnHoldDialog (Dialog d, String title) | |
Constructs a PutOnHoldDialog with the given dialog and title. | |
PutOnHoldDialog (Dialog d, String title, boolean flag) | |
Constructs a PutOnHoldDialog with the given dialog, title, and modal state. | |
PutOnHoldDialog (Dialog d, String title, boolean flag, GraphicsConfiguration g) | |
Constructs a PutOnHoldDialog with the given dialog, title, modal state, and graphics configuration. | |
PutOnHoldDialog (Frame f) | |
Constructs a PutOnHoldDialog from the given frame. | |
PutOnHoldDialog (Frame f, boolean flag) | |
Constructs a PutOnHoldDialog with the given dialog and modal state. | |
PutOnHoldDialog (Frame f, String title) | |
Constructs a PutOnHoldDialog with the given frame and title. | |
PutOnHoldDialog (Frame f, String title, boolean flag) | |
Constructs a PutOnHoldDialog with the given frame, title, and modal state. | |
PutOnHoldDialog (Frame f, String title, boolean flag, GraphicsConfiguration g) | |
Constructs a PutOnHoldDialog with the given frame, title, modal state, and graphics configuration. | |
PutOnHoldDialog (Window w) | |
Constructs a PutOnHoldDialog from the given window. | |
PutOnHoldDialog (Window w, ModalityType type) | |
Constructs a PutOnHoldDialog with the given window and modality type. | |
PutOnHoldDialog (Window w, String title) | |
Constructs a PutOnHoldDialog with the given window and title. | |
PutOnHoldDialog (Window w, String title, ModalityType type) | |
Constructs a PutOnHoldDialog with the given window, title, and modality type. | |
PutOnHoldDialog (Window w, String title, ModalityType type, GraphicsConfiguration g) | |
Constructs a PutOnHoldDialog with the given window, title, and modality type. | |
String | getPerson () |
Gets the string value entered by the user as the person on whom this task is waiting. | |
String | getReason () |
Gets the string value entered by the user as the reason this task is on hold. | |
boolean | presentDialog () |
Sets the size of this dialog to a reasonable one, sets it to be modal, shows it, and then returns true if the user clicked OK and false otherwise. | |
Static Public Member Functions | |
static void | main (String[] args) |
Tests that PutOnHoldDialog works correctly. | |
Private Member Functions | |
void | setup () |
Sets up the visual appearance of this dialog. | |
Private Attributes | |
boolean | okPressed = false |
True if the OK button has been pressed, false otherwise. | |
Controls | |
Various controls in this dialog. | |
PlaceholderTextField | whoField |
JTextArea | reasonField |
Static Private Attributes | |
static final long | serialVersionUID = 3593748306106567966L |
Prevent serialization collisions. |
edu.cmu.hcii.calo.view.task.PutOnHoldDialog.PutOnHoldDialog | ( | ) |
Constructs a PutOnHoldDialog.
edu.cmu.hcii.calo.view.task.PutOnHoldDialog.PutOnHoldDialog | ( | Dialog | d | ) |
edu.cmu.hcii.calo.view.task.PutOnHoldDialog.PutOnHoldDialog | ( | Dialog | d, | |
boolean | flag | |||
) |
Constructs a PutOnHoldDialog with the given dialog and modal state.
d | the dialog to use | |
flag | whether this should be modal |
edu.cmu.hcii.calo.view.task.PutOnHoldDialog.PutOnHoldDialog | ( | Dialog | d, | |
String | title | |||
) |
Constructs a PutOnHoldDialog with the given dialog and title.
d | the dialog to use | |
title | the title to use |
edu.cmu.hcii.calo.view.task.PutOnHoldDialog.PutOnHoldDialog | ( | Dialog | d, | |
String | title, | |||
boolean | flag | |||
) |
Constructs a PutOnHoldDialog with the given dialog, title, and modal state.
d | the dialog to use | |
title | the title to use | |
flag | whether this should be modal |
edu.cmu.hcii.calo.view.task.PutOnHoldDialog.PutOnHoldDialog | ( | Dialog | d, | |
String | title, | |||
boolean | flag, | |||
GraphicsConfiguration | g | |||
) |
Constructs a PutOnHoldDialog with the given dialog, title, modal state, and graphics configuration.
d | the dialog to use | |
title | the title to use | |
flag | whether this should be modal | |
g | the graphics configuration to use |
edu.cmu.hcii.calo.view.task.PutOnHoldDialog.PutOnHoldDialog | ( | Frame | f | ) |
edu.cmu.hcii.calo.view.task.PutOnHoldDialog.PutOnHoldDialog | ( | Frame | f, | |
boolean | flag | |||
) |
Constructs a PutOnHoldDialog with the given dialog and modal state.
f | the frame to use | |
flag | whether this should be modal |
edu.cmu.hcii.calo.view.task.PutOnHoldDialog.PutOnHoldDialog | ( | Frame | f, | |
String | title | |||
) |
Constructs a PutOnHoldDialog with the given frame and title.
f | the frame to use | |
title | the title to use |
edu.cmu.hcii.calo.view.task.PutOnHoldDialog.PutOnHoldDialog | ( | Frame | f, | |
String | title, | |||
boolean | flag | |||
) |
Constructs a PutOnHoldDialog with the given frame, title, and modal state.
f | the frame to use | |
title | the title to use | |
flag | whether this should be modal |
edu.cmu.hcii.calo.view.task.PutOnHoldDialog.PutOnHoldDialog | ( | Frame | f, | |
String | title, | |||
boolean | flag, | |||
GraphicsConfiguration | g | |||
) |
Constructs a PutOnHoldDialog with the given frame, title, modal state, and graphics configuration.
f | the frame to use | |
title | the title to use | |
flag | whether this should be modal | |
g | the graphics configuration to use |
edu.cmu.hcii.calo.view.task.PutOnHoldDialog.PutOnHoldDialog | ( | Window | w | ) |
edu.cmu.hcii.calo.view.task.PutOnHoldDialog.PutOnHoldDialog | ( | Window | w, | |
ModalityType | type | |||
) |
Constructs a PutOnHoldDialog with the given window and modality type.
w | the window to use | |
type | the modality type to use |
edu.cmu.hcii.calo.view.task.PutOnHoldDialog.PutOnHoldDialog | ( | Window | w, | |
String | title | |||
) |
Constructs a PutOnHoldDialog with the given window and title.
w | the window to use | |
title | the title to use |
edu.cmu.hcii.calo.view.task.PutOnHoldDialog.PutOnHoldDialog | ( | Window | w, | |
String | title, | |||
ModalityType | type | |||
) |
Constructs a PutOnHoldDialog with the given window, title, and modality type.
w | the window to use | |
title | the title to use | |
type | the modality type to use |
edu.cmu.hcii.calo.view.task.PutOnHoldDialog.PutOnHoldDialog | ( | Window | w, | |
String | title, | |||
ModalityType | type, | |||
GraphicsConfiguration | g | |||
) |
Constructs a PutOnHoldDialog with the given window, title, and modality type.
w | the window to use | |
title | the title to use | |
type | the modality type to use | |
g | the graphics configuration to use |
static void edu.cmu.hcii.calo.view.task.PutOnHoldDialog.main | ( | String[] | args | ) | [static] |
Tests that PutOnHoldDialog works correctly.
args | command-line arguments, don't bother passing any |
String edu.cmu.hcii.calo.view.task.PutOnHoldDialog.getPerson | ( | ) |
Gets the string value entered by the user as the person on whom this task is waiting.
String edu.cmu.hcii.calo.view.task.PutOnHoldDialog.getReason | ( | ) |
Gets the string value entered by the user as the reason this task is on hold.
boolean edu.cmu.hcii.calo.view.task.PutOnHoldDialog.presentDialog | ( | ) |
Sets the size of this dialog to a reasonable one, sets it to be modal, shows it, and then returns true
if the user clicked OK and false
otherwise.
You should use this instead of invoking setVisible() directly.
true
if the user clicked OK, false
otherwise void edu.cmu.hcii.calo.view.task.PutOnHoldDialog.setup | ( | ) | [private] |
Sets up the visual appearance of this dialog.
final long edu.cmu.hcii.calo.view.task.PutOnHoldDialog.serialVersionUID = 3593748306106567966L [static, private] |
Prevent serialization collisions.
boolean edu.cmu.hcii.calo.view.task.PutOnHoldDialog.okPressed = false [private] |
True if the OK button has been pressed, false otherwise.