Class EDTRunnableFuture<V>
java.lang.Object
VASSAL.tools.concurrent.SimpleFuture<V>
VASSAL.tools.concurrent.SimpleRunnableFuture<V>
VASSAL.tools.swing.EDTRunnableFuture<V>
- Type Parameters:
V- the result type returned by the method
- All Implemented Interfaces:
Runnable, Future<V>, RunnableFuture<V>, SettableFuture<V>, SettableRunnableFuture<V>
A {link RunnableFuture} for use on the Event Dispatch Thread.
- Since:
- 3.2.0
- Author:
- Joel Uckelman
-
Nested Class Summary
Nested classes/interfaces inherited from interface Future
Future.State -
Field Summary
Fields inherited from class SimpleFuture
cancelled, done, exception, result -
Constructor Summary
ConstructorsConstructorDescriptionCreates a {link RunnableFuture} which will be run on the Event Dispatch Thread.EDTRunnableFuture(V result) Creates a {link RunnableFuture} which will be run on the Event Dispatch Thread. -
Method Summary
Methods inherited from class SimpleFuture
cancel, get, get, isCancelled, isDone, set, setExceptionMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Future
cancel, exceptionNow, get, get, isCancelled, isDone, resultNow, stateMethods inherited from interface SettableFuture
set, setException
-
Constructor Details
-
EDTRunnableFuture
public EDTRunnableFuture()Creates a {link RunnableFuture} which will be run on the Event Dispatch Thread. -
EDTRunnableFuture
Creates a {link RunnableFuture} which will be run on the Event Dispatch Thread.- Parameters:
result- the result to return
-
-
Method Details
-
runOnEDT
-
run
public final void run()
-