Class gjt.QuestionDialog
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class gjt.QuestionDialog

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Window
                           |
                           +----java.awt.Dialog
                                   |
                                   +----gjt.GJTDialog
                                           |
                                           +----gjt.QuestionDialog

public class QuestionDialog
extends GJTDialog
A dialog that presents a prompt and a TextField into which a reply may be entered. Comes complete with an Ok button and a Cancel button, whose uses will be left to the imagination.

See Also:
GJTDialog, DialogTest

Constructor Index

 o QuestionDialog(Frame, DialogClient, String, String)
 o QuestionDialog(Frame, DialogClient, String, String, int)
 o QuestionDialog(Frame, DialogClient, String, String, String)
 o QuestionDialog(Frame, DialogClient, String, String, String, int)

Method Index

 o action(Event, Object)
 o getAnswer()
 o getTextField()
 o returnInTextField()
 o show()
 o wasCancelled()

Constructors

 o QuestionDialog
  public QuestionDialog(Frame frame,
                        DialogClient client,
                        String title,
                        String question,
                        String initialResponse)
 o QuestionDialog
  public QuestionDialog(Frame frame,
                        DialogClient client,
                        String title,
                        String question)
 o QuestionDialog
  public QuestionDialog(Frame frame,
                        DialogClient client,
                        String title,
                        String question,
                        int textFieldSize)
 o QuestionDialog
  public QuestionDialog(Frame frame,
                        DialogClient client,
                        String title,
                        String question,
                        String initialResponse,
                        int textFieldSize)

Methods

 o action
  public boolean action(Event event,
                        Object what)
Overrides:
action in class Component
 o show
  public void show()
Overrides:
show in class GJTDialog
 o returnInTextField
  public void returnInTextField()
 o getTextField
  public TextField getTextField()
 o getAnswer
  public String getAnswer()
 o wasCancelled
  public boolean wasCancelled()

All Packages  Class Hierarchy  This Package  Previous  Next  Index