weka.gui
Class SimpleCLI.ReaderToTextArea

java.lang.Object
  extended byjava.lang.Thread
      extended byweka.gui.SimpleCLI.ReaderToTextArea
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
SimpleCLI

class SimpleCLI.ReaderToTextArea
extends java.lang.Thread


Field Summary
protected  java.io.LineNumberReader m_Input
          The reader being monitored
protected  java.awt.TextArea m_Output
          The output text component
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
SimpleCLI.ReaderToTextArea(java.io.Reader input, java.awt.TextArea output)
          Sets up the ReaderToTextArea
 
Method Summary
 void run()
          Sit here listening for lines of input and appending them straight to the text component.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

m_Input

protected java.io.LineNumberReader m_Input
The reader being monitored


m_Output

protected java.awt.TextArea m_Output
The output text component

Constructor Detail

SimpleCLI.ReaderToTextArea

public SimpleCLI.ReaderToTextArea(java.io.Reader input,
                                  java.awt.TextArea output)
Sets up the ReaderToTextArea

Parameters:
input - the Reader to monitor
output - the TextArea to send output to
Method Detail

run

public void run()
Sit here listening for lines of input and appending them straight to the text component.