|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectconsole.Console.ShellState
public class Console.ShellState
Each Shell of a Console has its own ShellState A ShellState is a writable Output. It holds the document which is the "scrollback buffer".
| Constructor Summary | |
|---|---|
Console.ShellState(Shell shell)
|
|
| Method Summary | |
|---|---|
void |
commandDone()
Call when the command finishes executing. |
javax.swing.text.Document |
getDocument()
|
int |
getInputStart()
|
void |
print(java.awt.Color color,
java.lang.String msg)
Prints a line of text with the specified color. |
void |
setAttrs(int length,
javax.swing.text.AttributeSet attrs)
Changes the attributes of the given text selection to those specified. |
void |
setInputStart(int cmdStart)
|
void |
writeAttrs(javax.swing.text.AttributeSet attrs,
java.lang.String msg)
Prints a string of text with the specified color, without the terminating newline. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Console.ShellState(Shell shell)
| Method Detail |
|---|
public javax.swing.text.Document getDocument()
public int getInputStart()
public void setInputStart(int cmdStart)
public void print(java.awt.Color color,
java.lang.String msg)
Output
print in interface Outputcolor - The color. If null, the default color will be usedmsg - The message
public void writeAttrs(javax.swing.text.AttributeSet attrs,
java.lang.String msg)
Output
writeAttrs in interface Outputattrs - Character attributesmsg - The message
public void setAttrs(int length,
javax.swing.text.AttributeSet attrs)
Output
setAttrs in interface Outputlength - length of the textattrs - The new attributespublic void commandDone()
Output
commandDone in interface Output
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||