Scribble Problem Set Javadocs

cs101.awt
Class ServerDialog

java.lang.Object
  extended bycs101.awt.ServerDialog

public class ServerDialog
extends java.lang.Object

Manages a top level query dialog box to get port connection information. To display the dialog box, use ask(); to extract the port number, use getPort().

Relies heavily on QueryDialog.

Copyright (c) 1998 Massacuhsetts Institute of Technology

Version:
$Id: ServerDialog.java,v 1.1.1.1 2002/06/05 21:56:32 root Exp $
Author:
Todd C. Parnell, tparnell@ai.mit.edu, Nathan Williams , Lynn Andrea Stein
See Also:
QueryDialog, ask(), getPort()

Field Summary
protected  java.lang.String[] answers
           
protected  QueryDialog qd
           
protected  java.lang.String[] questions
           
 
Constructor Summary
ServerDialog()
          Creates the dialog information.
 
Method Summary
 void ask()
          Actually display the query dialog and get the answers from the user.
 int getPort()
          Return the port number from the user.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

qd

protected QueryDialog qd

answers

protected java.lang.String[] answers

questions

protected java.lang.String[] questions
Constructor Detail

ServerDialog

public ServerDialog()
Creates the dialog information. To show the dialog, call ask(). To retrieve information, use int getPort().

Method Detail

ask

public void ask()
Actually display the query dialog and get the answers from the user.

See Also:
getPort()

getPort

public int getPort()
Return the port number from the user. Not guaranteed to be sensible if ask hasn't aready been called.

See Also:
ask()

Scribble Problem Set Javadocs