ix.ip2.test
Class PanelTest.SendingThread

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--ix.util.CatchingThread
              |
              +--ix.ip2.test.PanelTest.SendingThread
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
PanelTest

class PanelTest.SendingThread
extends CatchingThread

Stoppable thread for sending a series of messages. Stop by doing thread.exit = true.


Field Summary
(package private)  javax.swing.AbstractButton button
           
(package private)  boolean exit
           
(package private)  PanelTest.TestSequenceListener listener
           
(package private)  int minDelay
           
(package private)  java.util.List testItems
           
 
Fields inherited from class ix.util.CatchingThread
innerRunnable
 
Fields inherited from class java.lang.Thread
inheritableThreadLocals, MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY, threadLocals
 
Constructor Summary
PanelTest.SendingThread(PanelTest.TestSequenceListener listener, java.util.List testItems)
           
 
Method Summary
 void innerRun()
          Calls the run() method of the innerRunnable passed to the constructor, if innerRunnable is non-null; otherwise does nothing.
(package private)  void send(java.lang.String toName, Sendable contents)
           
 
Methods inherited from class ix.util.CatchingThread
handleException, reportException, run
 
Methods inherited from class java.lang.Thread
, activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, 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

listener

PanelTest.TestSequenceListener listener

button

javax.swing.AbstractButton button

testItems

java.util.List testItems

minDelay

int minDelay

exit

volatile boolean exit
Constructor Detail

PanelTest.SendingThread

public PanelTest.SendingThread(PanelTest.TestSequenceListener listener,
                               java.util.List testItems)
Method Detail

innerRun

public void innerRun()
Description copied from class: CatchingThread
Calls the run() method of the innerRunnable passed to the constructor, if innerRunnable is non-null; otherwise does nothing. An alternative to supplying an innerRunnable is to redefine this method in a subclass.
Overrides:
innerRun in class CatchingThread

send

void send(java.lang.String toName,
          Sendable contents)