|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.mckoi.util.ShellUserTerminal
public class ShellUserTerminal
An implementation of UserTerminal that uses the shell terminal via System.in and System.out.
| Constructor Summary | |
|---|---|
ShellUserTerminal()
|
|
| Method Summary | |
|---|---|
int |
ask(java.lang.String question,
java.lang.String[] options,
int default_answer)
Asks the user a question from the 'question' string. |
void |
print(java.lang.String str)
Outputs a string of information to the terminal. |
void |
println(java.lang.String str)
Outputs a string of information and a newline to the terminal. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ShellUserTerminal()
| Method Detail |
|---|
public void print(java.lang.String str)
UserTerminal
print in interface UserTerminalpublic void println(java.lang.String str)
UserTerminal
println in interface UserTerminal
public int ask(java.lang.String question,
java.lang.String[] options,
int default_answer)
UserTerminal
ask in interface UserTerminal
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||