|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.fuin.apps4swing.EDTInvoker<RESULT>
RESULT - Type of result returned by the target method.public final class EDTInvoker<RESULT>
Calls a method on a target object in the EDT thread.
| Constructor Summary | |
|---|---|
EDTInvoker(EDTGetter<RESULT> target)
Constructor with target object. |
|
| Method Summary | |
|---|---|
RESULT |
invoke()
Calls the EDTGetter.get() using
SwingUtilities.invokeAndWait(Runnable). |
static void |
invokeAndWait(java.lang.Runnable runnable)
Executes a runnable using SwingUtilities.invokeAndWait(Runnable). |
static void |
invokeLater(java.lang.Runnable runnable)
Executes a runnable using SwingUtilities.invokeLater(Runnable). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EDTInvoker(EDTGetter<RESULT> target)
target - Object's EDTGetter.get() method is called in the EDT
thread.| Method Detail |
|---|
public final RESULT invoke()
EDTGetter.get() using
SwingUtilities.invokeAndWait(Runnable).
public static void invokeAndWait(java.lang.Runnable runnable)
SwingUtilities.invokeAndWait(Runnable).
runnable - Runnable to run.public static void invokeLater(java.lang.Runnable runnable)
SwingUtilities.invokeLater(Runnable).
runnable - Runnable to run.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||