com.lowagie.rups.view
Class Console

java.lang.Object
  extended by com.lowagie.rups.view.Console
All Implemented Interfaces:
java.util.Observer

public class Console
extends java.lang.Object
implements java.util.Observer

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.
 java.io.PrintStream getPrintStream()
          Get the custom PrintStream of the console.
 javax.swing.JTextPane getTextArea()
          Get the JTextArea to which everything is written.
static void println(java.lang.String s)
          Allows you to print something to the custom PrintStream.
 void update(java.util.Observable observable, java.lang.Object obj)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static Console getInstance()
Console is a Singleton class: you can only get one Console.


update

public void update(java.util.Observable observable,
                   java.lang.Object obj)
Specified by:
update in interface java.util.Observer
See Also:
Observer.update(java.util.Observable, java.lang.Object)

println

public static void println(java.lang.String s)
Allows you to print something to the custom PrintStream.

Parameters:
s - the message you want to send to the Console

getPrintStream

public java.io.PrintStream getPrintStream()
Get the custom PrintStream of the console.


getTextArea

public javax.swing.JTextPane getTextArea()
Get the JTextArea to which everything is written.



iText 2.1.7