|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--WISA.wisa3D.shell.Console
| Field Summary | |
protected java.awt.Component |
component
|
protected java.lang.Exception |
lastExc
|
java.io.PrintStream |
out
|
protected static java.lang.String |
PROMPT
|
| Constructor Summary | |
Console()
|
|
| Method Summary | |
void |
addCmdInfo(CmdInfo info)
Add a CmdInfo to this Console. |
void |
addVar(java.lang.Object var,
java.lang.String name)
Add a variable to this Console. |
protected void |
clearCommandLine()
|
void |
execute(java.lang.String cmd)
Parses the given command and executes it if possible. |
java.awt.Color |
getBackground()
|
CmdInfo |
getCmdInfo(java.lang.Object o)
Get the first CmdInfo that accepts the given Object. |
java.awt.Component |
getComponent()
|
static Console |
getConsole()
Construct a new Console if there was not yet any constructed or
return the first one which was constructed in this VM. |
int |
getFontSize()
|
java.awt.Color |
getForeground()
|
int |
getRows()
|
java.lang.Object |
getVar(java.lang.String name)
Get the variable with the given name. |
void |
removeVar(java.lang.String name)
Removes the variable with the given name from the variables of this Console. |
void |
setBackground(java.awt.Color color)
|
protected void |
setCommandLine(java.lang.String cmd)
|
void |
setFontSize(int size)
|
void |
setForeground(java.awt.Color color)
|
void |
setRows(int rows)
|
protected int |
verifyCaretPosition()
Verify the position of the caret. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.lang.Exception lastExc
protected static final java.lang.String PROMPT
protected java.awt.Component component
public java.io.PrintStream out
| Constructor Detail |
public Console()
| Method Detail |
protected void clearCommandLine()
protected void setCommandLine(java.lang.String cmd)
public void addVar(java.lang.Object var,
java.lang.String name)
throws ConsoleException
var - The variable to be added.name - The name with which the variable can be referenced.
ConsoleException - If a variable with the given name allready exists.public void removeVar(java.lang.String name)
name - The name of the variable to be removed.public java.lang.Object getVar(java.lang.String name)
name - The name of the variable.
public void addCmdInfo(CmdInfo info)
info - The CmdInfo to be added.public CmdInfo getCmdInfo(java.lang.Object o)
o - The Object to be accepted by the CmdInfo.
protected int verifyCaretPosition()
public java.awt.Component getComponent()
public static Console getConsole()
Console if there was not yet any constructed or
return the first one which was constructed in this VM.
Console or an existing.public void execute(java.lang.String cmd)
cmd - The command to be executed.public void setBackground(java.awt.Color color)
public java.awt.Color getBackground()
public void setForeground(java.awt.Color color)
public java.awt.Color getForeground()
public void setRows(int rows)
public int getRows()
public void setFontSize(int size)
public int getFontSize()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||