All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ncsa.hdf.awt.InfoDialog

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Window
                           |
                           +----java.awt.Dialog
                                   |
                                   +----ncsa.hdf.awt.InfoDialog

public class InfoDialog
extends Dialog
implements ActionListener
InfoDialog(Frame parent, String title, String message) This class produces a dialog box and displays the message in the box.

Version:
1.0, 01/13/98
Author:
Peter Cao (xcao@ncsa.uiuc.edu)

Variable Index

 o cancelButton
 o okButton

Constructor Index

 o InfoDialog(Frame, String, String, Image, boolean)
Create a noew dialog box which dsiplyas text information and image.
 o InfoDialog(Frame, String, String, Image, boolean, boolean)
Create a noew dialog box which dsiplyas text information and image.

Method Index

 o actionPerformed(ActionEvent)
handle editor events
 o clickedOkButton()
check if the OkButton is clicked
 o createDisplay()
 o getTextField()
return the TextField which holds user's input message
 o setlabels(String, String)
set okButton and cancelButton labels

Variables

 o okButton
 protected Button okButton
 o cancelButton
 protected Button cancelButton

Constructors

 o InfoDialog
 public InfoDialog(Frame parent,
                   String title,
                   String message,
                   Image image,
                   boolean hasCancelButton)
Create a noew dialog box which dsiplyas text information and image. This dialog has two display options: with/without the cancel button.

Parameters:
parent - the parent frame
title - the tile of the dialog box
message - the text message to be displayed in the dialog box
iamge - the iamge to be displayed in the dialog box
hasCancelButton - the indicator if it has a cancel button
 o InfoDialog
 public InfoDialog(Frame parent,
                   String title,
                   String message,
                   Image image,
                   boolean hasCancelButton,
                   boolean hasTextField)
Create a noew dialog box which dsiplyas text information and image. This dialog has two display options: with/without the cancel button.

Parameters:
parent - the parent frame
title - the tile of the dialog box
message - the text message to be displayed in the dialog box
iamge - the iamge to be displayed in the dialog box
hasCancelButton - the indicator if it has a cancel button
hasTextField - the indicator if it has a TextFiled

Methods

 o createDisplay
 public void createDisplay()
 o actionPerformed
 public void actionPerformed(ActionEvent e)
handle editor events

 o clickedOkButton
 public boolean clickedOkButton()
check if the OkButton is clicked

 o setlabels
 public void setlabels(String okLabel,
                       String cancelLabel)
set okButton and cancelButton labels

Parameters:
okLabel - the label of the okButton
cancelLabel - the label of the cancelButton
 o getTextField
 public TextField getTextField()
return the TextField which holds user's input message


All Packages  Class Hierarchy  This Package  Previous  Next  Index