net.sf.doolin.gui.monitor
Class CallableTask<T>
java.lang.Object
javax.swing.SwingWorker<T,V>
net.sf.doolin.gui.monitor.Task<T,Void>
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
| 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 |
CallableTask
public CallableTask(Callable<T> callable)
- Constructor
- Parameters:
callable - Callable to call
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.