public class ASyncConsoleOutput extends java.lang.Object implements IScriptConsole
| Modifier and Type | Field and Description |
|---|---|
javax.swing.text.SimpleAttributeSet |
defaultAttributeSet |
| Constructor and Description |
|---|
ASyncConsoleOutput(javax.swing.JTextPane outputArea,
IScriptContentGetter scriptContentGetter) |
| Modifier and Type | Method and Description |
|---|---|
void |
appendOutput(java.awt.Component component,
javax.swing.text.AttributeSet style)
Append to script console ...
|
void |
appendOutput(javax.swing.Icon icon,
javax.swing.text.AttributeSet style)
Append to script console ...
|
void |
appendOutput(java.lang.String text,
javax.swing.text.AttributeSet style)
Append to script console ...
|
void |
appendOutput(java.lang.Throwable t)
append exception to console output
|
void |
appendOutputNl(java.lang.String text,
javax.swing.text.AttributeSet style)
Append to script console ...
|
void |
clearConsole()
Clear the console ...
|
java.io.PrintStream |
getDefaultPrintWriter() |
public ASyncConsoleOutput(javax.swing.JTextPane outputArea,
IScriptContentGetter scriptContentGetter)
outputArea - scriptContentGetter - may be nullpublic void appendOutput(java.awt.Component component,
javax.swing.text.AttributeSet style)
throws java.lang.Exception
IScriptConsoleappendOutput in interface IScriptConsolejava.lang.Exceptionpublic void appendOutput(javax.swing.Icon icon,
javax.swing.text.AttributeSet style)
throws java.lang.Exception
IScriptConsoleappendOutput in interface IScriptConsolejava.lang.Exceptionpublic void appendOutput(java.lang.String text,
javax.swing.text.AttributeSet style)
throws java.lang.Exception
IScriptConsoleappendOutput in interface IScriptConsolejava.lang.Exceptionpublic void appendOutputNl(java.lang.String text,
javax.swing.text.AttributeSet style)
throws java.lang.Exception
IScriptConsoleappendOutputNl in interface IScriptConsolejava.lang.Exceptionpublic void appendOutput(java.lang.Throwable t)
throws java.lang.Exception
IScriptConsoleappendOutput in interface IScriptConsolejava.lang.Exceptionpublic void clearConsole()
IScriptConsoleclearConsole in interface IScriptConsolepublic java.io.PrintStream getDefaultPrintWriter()