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
IScriptConsole
appendOutput
in interface IScriptConsole
java.lang.Exception
public void appendOutput(javax.swing.Icon icon, javax.swing.text.AttributeSet style) throws java.lang.Exception
IScriptConsole
appendOutput
in interface IScriptConsole
java.lang.Exception
public void appendOutput(java.lang.String text, javax.swing.text.AttributeSet style) throws java.lang.Exception
IScriptConsole
appendOutput
in interface IScriptConsole
java.lang.Exception
public void appendOutputNl(java.lang.String text, javax.swing.text.AttributeSet style) throws java.lang.Exception
IScriptConsole
appendOutputNl
in interface IScriptConsole
java.lang.Exception
public void appendOutput(java.lang.Throwable t) throws java.lang.Exception
IScriptConsole
appendOutput
in interface IScriptConsole
java.lang.Exception
public void clearConsole()
IScriptConsole
clearConsole
in interface IScriptConsole
public java.io.PrintStream getDefaultPrintWriter()