@ThreadSafe public class GuiActionRunner extends Object
Constructor and Description |
---|
GuiActionRunner() |
Modifier and Type | Method and Description |
---|---|
static <T> T |
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()
|
static void |
executeInEDT(boolean b)
Indicates
if instances of and
should be executed in the event dispatch thread or not. |
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()
Copyright © 2007-2012 FEST (Fixtures for Easy Software Testing). All Rights Reserved.