gumbo.app
Class JTextAreaWriter

java.lang.Object
  |
  +--java.io.Writer
        |
        +--gumbo.app.JTextAreaWriter

public class JTextAreaWriter
extends java.io.Writer

Wraps a JTextArea with a writer that allows text to be appended asychronously (i.e. from outside the GUI thread).

Version:
$Revision: 1.6 $
Author:
Jon Barrilleaux (jonb@jmbaai.com) of JMB and Associates Inc.

Nested Class Summary
 class JTextAreaWriter.TargetProxy
          A target proxy that allows asynchronous access.
 
Field Summary
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
JTextAreaWriter(javax.swing.JTextArea target)
           
JTextAreaWriter(JTextAreaWriter.TargetProxy proxy)
           
 
Method Summary
 void close()
           
 void flush()
           
 JTextAreaWriter.TargetProxy getTargetProxy()
           
 void write(char[] cbuf, int off, int len)
           
 
Methods inherited from class java.io.Writer
write, write, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JTextAreaWriter

public JTextAreaWriter(javax.swing.JTextArea target)

JTextAreaWriter

public JTextAreaWriter(JTextAreaWriter.TargetProxy proxy)
Method Detail

getTargetProxy

public JTextAreaWriter.TargetProxy getTargetProxy()

write

public void write(char[] cbuf,
                  int off,
                  int len)
Specified by:
write in class java.io.Writer

flush

public void flush()
Specified by:
flush in class java.io.Writer

close

public void close()
Specified by:
close in class java.io.Writer