edu.cmu.hcii.calo.view.task.PutOnHoldDialog Class Reference

Collaboration diagram for edu.cmu.hcii.calo.view.task.PutOnHoldDialog:

Collaboration graph
[legend]
List of all members.

Detailed Description

A dialog containing fields allowing the user to enter a reason for putting a task on hold, as well as the person on whom they are waiting.

Author:
Brian Ellis


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.


Constructor & Destructor Documentation

edu.cmu.hcii.calo.view.task.PutOnHoldDialog.PutOnHoldDialog (  ) 

Constructs a PutOnHoldDialog.

edu.cmu.hcii.calo.view.task.PutOnHoldDialog.PutOnHoldDialog ( Dialog  d  ) 

Constructs a PutOnHoldDialog with the given dialog.

Parameters:
d the dialog to use

edu.cmu.hcii.calo.view.task.PutOnHoldDialog.PutOnHoldDialog ( Dialog  d,
boolean  flag 
)

Constructs a PutOnHoldDialog with the given dialog and modal state.

Parameters:
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.

Parameters:
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.

Parameters:
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.

Parameters:
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  ) 

Constructs a PutOnHoldDialog from the given frame.

Parameters:
f the frame to use

edu.cmu.hcii.calo.view.task.PutOnHoldDialog.PutOnHoldDialog ( Frame  f,
boolean  flag 
)

Constructs a PutOnHoldDialog with the given dialog and modal state.

Parameters:
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.

Parameters:
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.

Parameters:
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.

Parameters:
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  ) 

Constructs a PutOnHoldDialog from the given window.

Parameters:
w the window to use

edu.cmu.hcii.calo.view.task.PutOnHoldDialog.PutOnHoldDialog ( Window  w,
ModalityType  type 
)

Constructs a PutOnHoldDialog with the given window and modality type.

Parameters:
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.

Parameters:
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.

Parameters:
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.

Parameters:
w the window to use
title the title to use
type the modality type to use
g the graphics configuration to use


Member Function Documentation

static void edu.cmu.hcii.calo.view.task.PutOnHoldDialog.main ( String[]  args  )  [static]

Tests that PutOnHoldDialog works correctly.

Parameters:
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.

Returns:
the person

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.

Returns:
the reason

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.

Returns:
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.


Member Data Documentation

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.


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