Scribble Problem Set Javadocs

cs101.awt
Class ClientDialog

java.lang.Object
  extended bycs101.awt.ClientDialog

public class ClientDialog
extends java.lang.Object

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

Relies heavily on QueryDialog.

Copyright (c) 1998 Massachusetts Institute of Technology

Version:
$Id: ClientDialog.java,v 1.2 2003/09/23 16:12:31 gus Exp $
Author:
Todd C. Parnell, tparnell@ai.mit.edu, Nathan Williams , Lynn Andrea Stein
See Also:
QueryDialog, ask(), getHostName(), getPort()

Field Summary
protected  java.lang.String[] answers
           
protected  QueryDialog qd
           
protected  java.lang.String[] questions
           
 
Constructor Summary
ClientDialog()
          Creates the dialog information.
 
Method Summary
 void ask()
          Actually display the query dialog and get the answers from the user.
 java.lang.String getHostName()
          Return the host machine name 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

ClientDialog

public ClientDialog()
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:
getHostName(), getPort()

getHostName

public java.lang.String getHostName()
Return the host machine name from the user. Not guaranteed to be sensible if ask hasn't aready been called.

See Also:
ask()

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