ix.ip2.test
Class PanelTest.SendingThread

java.lang.Object
  extended by java.lang.Thread
      extended by ix.util.CatchingThread
          extended by 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.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
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 java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
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, run
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, 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)