|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectviewer.Console
public class Console
Method of input and output to be connected to the viewer. Ideally would replace System.in and System.out, which would be useful for fullscreen
| Constructor Summary | |
|---|---|
Console()
Provides a way for the user to send/receive commands to/from the program. |
|
| Method Summary | |
|---|---|
void |
attachInteraction(Interaction interaction)
Give consoleIn somewhere to send the commands to |
java.awt.Panel |
getConsole()
Gets the cosnole object so it can be attached to the main progran |
java.io.InputStream |
getIn()
Gets the input stream so that it can be attached to the main program |
java.io.PrintStream |
getOut()
Gets the output stream so that it can be attached to the main program |
boolean |
isVisible()
Get the visibility of the console |
void |
requestFocus()
Request that the text field receive focus, since that would be nice |
void |
setVisible(boolean b)
Show or hide the console |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Console()
| Method Detail |
|---|
public java.awt.Panel getConsole()
public java.io.PrintStream getOut()
public java.io.InputStream getIn()
public void attachInteraction(Interaction interaction)
interaction - public void setVisible(boolean b)
b - true to display the consolepublic boolean isVisible()
public void requestFocus()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||