public interface ActionExecutor
| Modifier and Type | Field and Description |
|---|---|
static String |
ACTION_EXECUTOR_PROPERTY |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(Environment env,
boolean dispatch,
Action action,
Object... parameters)
Schedules to execute an action and waits for it to finish.
|
void |
executeDetached(Environment env,
boolean dispatch,
Action action,
Object... parameters)
Schedules to execute an action and exits immediately.
|
boolean |
isInAction()
Checks whether the current thread is already performing an action.
|
void |
waitQuiet(Timeout waitTime)
Waits for no activities to be going on.
|
static final String ACTION_EXECUTOR_PROPERTY
void execute(Environment env, boolean dispatch, Action action, Object... parameters)
env - Environment.dispatch - if true the action is executed on UI system dispatch
thread. This is usually necessary to invoke methods of the UI to get
the correct state or to update it.action - Action to execute.parameters - Parameters to pass to
action.run() method.void executeDetached(Environment env, boolean dispatch, Action action, Object... parameters)
env - Environment.dispatch - if true the action is executed on UI system dispatch
thread. This is usually necessary to invoke methods of the UI to get
the correct state or to update it.action - Action to execute.parameters - Parameters to pass to
action.run() method.boolean isInAction()
void waitQuiet(Timeout waitTime)
waitTime - maximum time for waiting.AbstractExecutor.isQuiet()Copyright © 2018. All rights reserved.