|
Pig Latin Problem Set Javadocs | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cs101.awt.ClientDialog
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
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 |
protected QueryDialog qd
protected java.lang.String[] answers
protected java.lang.String[] questions
Constructor Detail |
public ClientDialog()
Method Detail |
public void ask()
getHostName()
,
getPort()
public java.lang.String getHostName()
ask()
public int getPort()
ask()
|
Pig Latin Problem Set Javadocs | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |