gumbo.app
Class ConsolePanel.TextFieldReader

java.lang.Object
  |
  +--java.io.Reader
        |
        +--java.io.PipedReader
              |
              +--gumbo.app.ConsolePanel.TextFieldReader
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener
Enclosing class:
ConsolePanel

public class ConsolePanel.TextFieldReader
extends java.io.PipedReader
implements java.awt.event.ActionListener

Allows a JTextField to be accessed asychronously through a Reader. The text typed into the field will be sent through the reader when the user hits the return key. The text will be left selected in the field (so that it can be seen, and erased upon subsequent text entry).


Field Summary
 
Fields inherited from class java.io.Reader
lock
 
Constructor Summary
ConsolePanel.TextFieldReader(javax.swing.JTextField field)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent evt)
           
 
Methods inherited from class java.io.PipedReader
close, connect, read, read, ready
 
Methods inherited from class java.io.Reader
mark, markSupported, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConsolePanel.TextFieldReader

public ConsolePanel.TextFieldReader(javax.swing.JTextField field)
                             throws java.io.IOException
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent evt)
Specified by:
actionPerformed in interface java.awt.event.ActionListener