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)
-
cancelButton
-
-
okButton
-
-
InfoDialog(Frame, String, String, Image, boolean)
- Create a noew dialog box which dsiplyas text information and image.
-
InfoDialog(Frame, String, String, Image, boolean, boolean)
- Create a noew dialog box which dsiplyas text information and image.
-
actionPerformed(ActionEvent)
- handle editor events
-
clickedOkButton()
- check if the OkButton is clicked
-
createDisplay()
-
-
getTextField()
- return the TextField which holds user's input message
-
setlabels(String, String)
- set okButton and cancelButton labels
okButton
protected Button okButton
cancelButton
protected Button cancelButton
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
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
createDisplay
public void createDisplay()
actionPerformed
public void actionPerformed(ActionEvent e)
- handle editor events
clickedOkButton
public boolean clickedOkButton()
- check if the OkButton is clicked
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
getTextField
public TextField getTextField()
- return the TextField which holds user's input message
All Packages Class Hierarchy This Package Previous Next Index