gumbo.app
Class JLabelWriter

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

public class JLabelWriter
extends java.io.Writer

Wraps a JLabel with a writer that allows text to be set 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 JLabelWriter.TargetProxy
          A target proxy that allows asynchronous access.
 
Field Summary
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
JLabelWriter(javax.swing.JLabel target)
           
JLabelWriter(JLabelWriter.TargetProxy proxy)
           
 
Method Summary
 void close()
           
 void flush()
           
 JLabelWriter.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

JLabelWriter

public JLabelWriter(javax.swing.JLabel target)

JLabelWriter

public JLabelWriter(JLabelWriter.TargetProxy proxy)
Method Detail

getTargetProxy

public JLabelWriter.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