de.matthiasmann.twl
Interface GUI.AsyncCompletionListener<V>

Type Parameters:
V - the result type of the async job
Enclosing class:
GUI

public static interface GUI.AsyncCompletionListener<V>

A completion listener for async jobs. It is invoked via GUI.invokeLater(java.lang.Runnable)


Method Summary
 void completed(V result)
          The job has completed normally
 void failed(java.lang.Exception ex)
          The job has failed with an exception
 

Method Detail

completed

void completed(V result)
The job has completed normally

Parameters:
result - the result of the async job or null if it was a Runnable

failed

void failed(java.lang.Exception ex)
The job has failed with an exception

Parameters:
ex - the exception thrown by the async job