oracle.toplink.tools.beans
Class TextAreaOutputStream

java.lang.Object
  |
  +--java.io.OutputStream
        |
        +--oracle.toplink.tools.beans.TextAreaOutputStream

public class TextAreaOutputStream
extends java.io.OutputStream

This class can be used to wrapper a window as a stream.


Constructor Summary
TextAreaOutputStream(javax.swing.JTextArea text)
           
TextAreaOutputStream(javax.swing.JTextArea text, boolean shouldAutoScroll)
           
 
Method Summary
TypeMethod
 javax.swing.JTextArea getText()
           
 void scrollToEnd()
          Append the char to the text area.
 void setShouldAutoScroll(boolean shouldAutoScroll)
          JDK 1.2.2 has a auto scroll problem when threads are used.
 void setText(javax.swing.JTextArea text)
           
 boolean shouldAutoScroll()
          JDK 1.2.2 has a auto scroll problem when threads are used.
 void write(byte[] bytes)
          Append the char to the text area.
 void write(byte[] bytes, int offset, int length)
          Append the char to the text area.
 void write(int b)
          Append the char to the text area.
 
Methods inherited from class java.io.OutputStream
close, flush
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextAreaOutputStream

public TextAreaOutputStream(javax.swing.JTextArea text)

TextAreaOutputStream

public TextAreaOutputStream(javax.swing.JTextArea text,
                            boolean shouldAutoScroll)
Method Detail

getText

public javax.swing.JTextArea getText()

scrollToEnd

public void scrollToEnd()
Append the char to the text area.

setShouldAutoScroll

public void setShouldAutoScroll(boolean shouldAutoScroll)
JDK 1.2.2 has a auto scroll problem when threads are used. This can be used to fix it.

setText

public void setText(javax.swing.JTextArea text)

shouldAutoScroll

public boolean shouldAutoScroll()
JDK 1.2.2 has a auto scroll problem when threads are used. This can be used to fix it.

write

public void write(byte[] bytes)
Append the char to the text area.
Overrides:
write in class java.io.OutputStream

write

public void write(byte[] bytes,
                  int offset,
                  int length)
Append the char to the text area.
Overrides:
write in class java.io.OutputStream

write

public void write(int b)
Append the char to the text area.
Overrides:
write in class java.io.OutputStream