All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class dtai.gui.SimpleDialog

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----dtai.gwt.GadgetShell
                                   |
                                   +----dtai.gwt.GadgetPanel
                                           |
                                           +----dtai.gwt.GadgetDialog
                                                   |
                                                   +----dtai.gui.StdDialog
                                                           |
                                                           +----dtai.gui.SimpleDialog

public class SimpleDialog
extends StdDialog
implements ActionListener
SimpleDialog - superclass for error, warning, info, etc. dialogs


Constructor Index

 o SimpleDialog(Frame, String)
SimpleDialog constructor
 o SimpleDialog(Frame, String, boolean)
SimpleDialog constructor
 o SimpleDialog(Frame, String, String)
SimpleDialog constructor
 o SimpleDialog(Frame, String, String, boolean)
SimpleDialog constructor

Method Index

 o actionPerformed(ActionEvent)
Checks if the user clicked on "OK"
 o setCenterText()
justifies the message label center
 o setLeftJustified()
justifies the message label left
 o setMaxLineLength(int)
sets the maximum line length of the message label
 o setMessage(String)
sets the message for the label
 o setRightJustified()
justifies the message label right

Constructors

 o SimpleDialog
 protected SimpleDialog(Frame frame,
                        String dialog_header)
SimpleDialog constructor

Parameters:
frame - the dialog box frame
dialog_header - the dialog box header
 o SimpleDialog
 protected SimpleDialog(Frame frame,
                        String dialog_header,
                        boolean modal)
SimpleDialog constructor

Parameters:
frame - the dialog box frame
dialog_header - the dialog box header
modal - is/is not modal
 o SimpleDialog
 protected SimpleDialog(Frame frame,
                        String dialog_header,
                        String defaultButton)
SimpleDialog constructor

Parameters:
frame - the dialog box frame
dialog_header - the dialog box header
defaultButton - the default button
 o SimpleDialog
 protected SimpleDialog(Frame frame,
                        String dialog_header,
                        String defaultButton,
                        boolean modal)
SimpleDialog constructor

Parameters:
frame - the dialog box frame
dialog_header - the dialog box header
defaultButton - the default button
modal - is/is not modal

Methods

 o setLeftJustified
 public void setLeftJustified()
justifies the message label left

 o setRightJustified
 public void setRightJustified()
justifies the message label right

 o setCenterText
 public void setCenterText()
justifies the message label center

 o setMaxLineLength
 public void setMaxLineLength(int len)
sets the maximum line length of the message label

Parameters:
len - the integer maximim line length
 o setMessage
 public void setMessage(String message)
sets the message for the label

Parameters:
message - the String message for the label
 o actionPerformed
 public void actionPerformed(ActionEvent action)
Checks if the user clicked on "OK"

Parameters:
action - the ActionEvent.

All Packages  Class Hierarchy  This Package  Previous  Next  Index