|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.fest.swing.edt.GuiActionRunner
@ThreadSafe public class GuiActionRunner
Understands running instances of
and GuiQuery
.
GuiTask
Constructor Summary | |
---|---|
GuiActionRunner()
|
Method Summary | ||
---|---|---|
static
|
execute(GuiQuery<T> query)
Executes the given query in the event dispatch thread. |
|
static void |
execute(GuiTask task)
Executes the given task in the event dispatch thread. |
|
static boolean |
executeInEDT()
Returns whether instances of and should be executed in
the event dispatch thread or not. |
|
static void |
executeInEDT(boolean b)
Indicates if instances of and
should be executed in the event dispatch thread or not. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GuiActionRunner()
Method Detail |
---|
public static void executeInEDT(boolean b)
GuiActionRunner
if instances of GuiQuery
and
GuiTask
should be executed in the event dispatch thread or not.
b
- if true
, GUI actions are executed in the event dispatch thread. If false
,
GUI actions are executed in the current thread.public static boolean executeInEDT()
GuiQuery
and GuiTask
should be executed in
the event dispatch thread or not.
true
if GUI actions are executed in the event dispatch thread, false
otherwise.public static <T> T execute(GuiQuery<T> query)
T
- the generic type of the return value.query
- the query to execute.
UnexpectedException
- wrapping any checked exception thrown when executing the given query in the
event dispatch thread. Unchecked exceptions are re-thrown without any wrapping.executeInEDT()
public static void execute(GuiTask task)
task
- the task to execute.
UnexpectedException
- wrapping any checked exception thrown when executing the given query in the
event dispatch thread. Unchecked exceptions are re-thrown without any wrapping.executeInEDT()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |