|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectconsole.ErrorOutput
public class ErrorOutput
Constructor Summary | |
---|---|
ErrorOutput(Console c)
|
|
ErrorOutput(Output output,
java.awt.Color errorColor)
|
Method Summary | |
---|---|
void |
commandDone()
Call when the command finishes executing. |
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 |
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 ErrorOutput(Console c)
public ErrorOutput(Output output, java.awt.Color errorColor)
Method Detail |
---|
public void print(java.awt.Color color, java.lang.String msg)
Output
print
in interface Output
color
- The color. If null, the default color will be usedmsg
- The messagepublic void writeAttrs(javax.swing.text.AttributeSet attrs, java.lang.String msg)
Output
writeAttrs
in interface Output
attrs
- Character attributesmsg
- The messagepublic void setAttrs(int length, javax.swing.text.AttributeSet attrs)
Output
setAttrs
in interface Output
length
- 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 |