|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The interface which defines a console for worker classes. Implementing classes enable the application to run both in text and graphic mode.
TextConsole
,
AWTConsole
Method Summary | |
void |
close()
Closes the console window. |
void |
error(java.lang.String message)
Writes an error message to the console. |
java.lang.String |
readLine()
Reads a line from the console, blocks until it is available. |
void |
setTitle(java.lang.String title)
Sets a title of the window. |
void |
updateUserList(java.util.Collection list)
Updates a user list. |
void |
writeLine(java.lang.String message)
Writes a line to the console. |
Method Detail |
public java.lang.String readLine()
public void writeLine(java.lang.String message)
message
- the line to be written.public void error(java.lang.String message)
message
- the message to be written.public void updateUserList(java.util.Collection list)
list
- a collection of String
objects.public void setTitle(java.lang.String title)
title
- the desired title.public void close()
title
- the desired title.
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |