org.stringer.thread
Interface IThreadListener

All Known Implementing Classes:
AbstractThreadListener

public interface IThreadListener

Threads report their progress to classes that implement this interface.

Author:
R. Kevin Cole kcole@users.sourceforge.net

Method Summary
 void begin()
          Called at the begining of processing for a give item.
 void beginUnit(java.lang.Object o)
           
 void canceled()
          Called at the if the thread has been interruped.
 void complete(java.lang.Object o)
          Called when the thread task is complete.
 void endUnit(java.lang.Object o)
          Called at the end of processing for a give item.
 javax.swing.ProgressMonitor getProgressMonitor()
           
 

Method Detail

complete

public void complete(java.lang.Object o)
Called when the thread task is complete.


begin

public void begin()
Called at the begining of processing for a give item. This provides for fine-grained reporting of thread activity.


beginUnit

public void beginUnit(java.lang.Object o)

endUnit

public void endUnit(java.lang.Object o)
Called at the end of processing for a give item. This provides for fine-grained reporting of thread activity.


canceled

public void canceled()
Called at the if the thread has been interruped.


getProgressMonitor

public javax.swing.ProgressMonitor getProgressMonitor()


Copyright © R. Kevin Cole. All Rights Reserved.