@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 (EDT.) This method waits until the query has finished its
execution.
|
static void |
execute(GuiTask task)
Executes the given task in the event dispatch thread (EDT.) This method waits until the task has finished its
execution.
|
static boolean |
executeInEDT()
|
static void |
executeInEDT(boolean b)
Indicates
GuiActionRunner whether instances of GuiQuery and GuiTask should be executed in
the event dispatch thread (EDT.) |
public static void executeInEDT(boolean b)
GuiActionRunner whether instances of GuiQuery and GuiTask should be executed in
the event dispatch thread (EDT.)b - if true, GUI actions are executed in the event dispatch thread (EDT.) 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
(EDT.)true if GUI actions are executed in the event dispatch thread, false otherwise.@Nullable public static <T> T execute(@Nonnull GuiQuery<T> query)
query - the query to execute.UnexpectedException - wrapping any checked exception thrown when executing the given query in the
event dispatch thread (EDT.) Unchecked exceptions are re-thrown without any wrapping.executeInEDT()public static void execute(@Nonnull GuiTask task)
task - the task to execute.UnexpectedException - wrapping any checked exception thrown when executing the given query in the
event dispatch thread (EDT.) Unchecked exceptions are re-thrown without any wrapping.executeInEDT()Copyright © 2014 AssertJ. All rights reserved.