|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--gov.sns.application.Console
The Console captures standard output and standard error streams. Both are displayed in a console window. One console serves the entire application. Standard output appears in black text while standard error appears in red text.
| Nested Class Summary | |
protected class |
Console.ConsoleErrHandler
The internal class whose instance handles the error stream. |
protected class |
Console.ConsoleOutHandler
The internal class whose instance handles the output stream. |
| Field Summary | |
protected static Console |
console
|
protected javax.swing.text.DefaultStyledDocument |
document
|
protected Console.ConsoleErrHandler |
errStream
|
protected javax.swing.text.Style |
errStyle
|
protected javax.swing.JFrame |
frame
|
protected boolean |
neverShown
|
protected Console.ConsoleOutHandler |
outStream
|
protected javax.swing.text.Style |
outStyle
|
protected java.io.PrintStream |
standardErr
|
protected java.io.PrintStream |
standardOut
|
protected javax.swing.JTextPane |
textView
|
| Constructor Summary | |
Console()
Creates a new instance of Console |
|
| Method Summary | |
static void |
captureErr()
Sets the console to capture standard error. |
static void |
captureOutput()
Sets the console to capture standard output. |
static void |
hide()
Hide the console. |
static void |
showNear(java.awt.Component sender)
Show the console. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static Console console
protected java.io.PrintStream standardOut
protected java.io.PrintStream standardErr
protected Console.ConsoleOutHandler outStream
protected Console.ConsoleErrHandler errStream
protected javax.swing.JFrame frame
protected boolean neverShown
protected javax.swing.JTextPane textView
protected javax.swing.text.Style outStyle
protected javax.swing.text.Style errStyle
protected javax.swing.text.DefaultStyledDocument document
| Constructor Detail |
public Console()
| Method Detail |
public static void captureOutput()
public static void captureErr()
public static void showNear(java.awt.Component sender)
sender - The component relative to which the console should be positionedpublic static void hide()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||