com.jstatcom.engine
Interface PCallListener

All Superinterfaces:
java.util.EventListener
All Known Implementing Classes:
DefaultPCallControl, PCallAdapter

public interface PCallListener
extends java.util.EventListener

Interface to be implemented by listeners to PCall objects. All calls are synchronized with the Swing EventDispatchingThread, because interested listeners usually are graphical objects that invoke some kind of GUI operation. An empty convenience implementation is PCallAdapter.

Author:
A. Benkwitz, Markus Kraetzig
See Also:
PCall, PCallAdapter

Method Summary
 void finished(PCall pc)
          Invoked when a procedure finishes, no matter whether the call was successful, interrupted or erroneous.
 void queued(PCall pc)
          Invoked when a procedure was queued in the main worker thread.
 void started(PCall pc)
          Invoked when the procedure's run method was called within the main worker thread.
 void success()
          Invoked when a procedure finished successfully and was not interrupted.
 

Method Detail

finished

void finished(PCall pc)
Invoked when a procedure finishes, no matter whether the call was successful, interrupted or erroneous.

Parameters:
pc - the calling object

queued

void queued(PCall pc)
Invoked when a procedure was queued in the main worker thread.

Parameters:
pc - the calling object

started

void started(PCall pc)
Invoked when the procedure's run method was called within the main worker thread.

Parameters:
pc - the calling object

success

void success()
Invoked when a procedure finished successfully and was not interrupted. This method is a convenience implementation, because it is the most common case. The functionality is the same as using finished plus checking the source call for success.