net.sf.doolin.gui.monitor
Class CallableTask<T>

java.lang.Object
  extended by javax.swing.SwingWorker<T,V>
      extended by net.sf.doolin.gui.monitor.Task<T,Void>
          extended by net.sf.doolin.gui.monitor.CallableTask<T>
Type Parameters:
T - Return type for the Callable
All Implemented Interfaces:
Runnable, Future<T>, RunnableFuture<T>

public class CallableTask<T>
extends Task<T,Void>

Task based on a Callable.

Author:
Damien Coraboeuf

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.SwingWorker
SwingWorker.StateValue
 
Constructor Summary
CallableTask(Callable<T> callable)
          Constructor
 
Method Summary
protected  T doInBackground()
          Calls the Callable
 
Methods inherited from class net.sf.doolin.gui.monitor.Task
fireTaskNote, getListener, setListener
 
Methods inherited from class javax.swing.SwingWorker
addPropertyChangeListener, cancel, done, execute, firePropertyChange, get, get, getProgress, getPropertyChangeSupport, getState, isCancelled, isDone, process, publish, removePropertyChangeListener, run, setProgress
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CallableTask

public CallableTask(Callable<T> callable)
Constructor

Parameters:
callable - Callable to call
Method Detail

doInBackground

protected T doInBackground()
                    throws Exception
Calls the Callable

Specified by:
doInBackground in class SwingWorker<T,Void>
Throws:
Exception
See Also:
Callable.call()


Copyright © 2011. All Rights Reserved.