|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.itextpdf.rups.view.Console
public class Console
A Class that redirects everything written to System.out and System.err to a JTextPane.
Method Summary | |
---|---|
static Console |
getInstance()
Console is a Singleton class: you can only get one Console. |
PrintStream |
getPrintStream()
Get the custom PrintStream of the console. |
JTextPane |
getTextArea()
Get the JTextArea to which everything is written. |
static void |
println(String s)
Allows you to print something to the custom PrintStream. |
void |
update(Observable observable,
Object obj)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Console getInstance()
public void update(Observable observable, Object obj)
update
in interface Observer
Observer.update(java.util.Observable, java.lang.Object)
public static void println(String s)
s
- the message you want to send to the Consolepublic PrintStream getPrintStream()
public JTextPane getTextArea()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |