Package VASSAL.tools.swing
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 java.util.concurrent.Future
Future.State
-
Field Summary
Fields inherited from class VASSAL.tools.concurrent.SimpleFuture
cancelled, done, exception, result
-
Constructor Summary
ConstructorDescriptionCreates 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 VASSAL.tools.concurrent.SimpleFuture
cancel, get, get, isCancelled, isDone, set, setException
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.concurrent.Future
cancel, exceptionNow, get, get, isCancelled, isDone, resultNow, state
Methods inherited from interface VASSAL.tools.concurrent.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()
-