Client
Class GuiEchoListener

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--Client.GuiEchoListener
All Implemented Interfaces:
java.lang.Runnable

public class GuiEchoListener
extends java.lang.Thread

A thread responsible for sitting on the server-echo FIFO and writing them on the GUI


Field Summary
private  javax.swing.JTextArea echoArea
          a reference for the TextArea to write in
 
Fields inherited from class java.lang.Thread
contextClassLoader, daemon, eetop, group, inheritableThreadLocals, inheritedAccessControlContext, MAX_PRIORITY, MIN_PRIORITY, name, NORM_PRIORITY, priority, single_step, stillborn, stopThreadPermission, target, threadInitNumber, threadLocals, threadQ
 
Constructor Summary
(package private) GuiEchoListener(javax.swing.JTextArea echoArea)
          A constructor that saves a reference for a window to write in
 
Method Summary
 void run()
          A front-end for this thread.
 
Methods inherited from class java.lang.Thread
, activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, exit, getContextClassLoader, getName, getPriority, getThreadGroup, init, interrupt, interrupt0, interrupted, isAlive, isDaemon, isInterrupted, isInterrupted, join, join, join, nextThreadNum, registerNatives, resume, resume0, setContextClassLoader, setDaemon, setName, setPriority, setPriority0, sleep, sleep, start, stop, stop, stop0, suspend, suspend0, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

echoArea

private javax.swing.JTextArea echoArea
a reference for the TextArea to write in
Constructor Detail

GuiEchoListener

GuiEchoListener(javax.swing.JTextArea echoArea)
A constructor that saves a reference for a window to write in
Parameters:
echoArea - The TextArea to write in
Method Detail

run

public void run()
A front-end for this thread. Infinitely waits for messages on StaticFifos.ServerEcho() and writes them to the relevant GUI's text area
Overrides:
run in class java.lang.Thread