public abstract class ActionInvoker extends Object
Callers shall use the ActionInvoker.invokeAction(javax.swing.Action, java.awt.event.ActionEvent, boolean, java.lang.Runnable)
method.
Implementors register an implementation of this class via ServiceProvider
annotation.
Modifier | Constructor and Description |
---|---|
protected |
ActionInvoker()
Subclass constructor.
|
Modifier and Type | Method and Description |
---|---|
protected abstract void |
invokeAction(Action action,
ActionEvent ev)
An infrastructure method that handles invocation of an an action.
|
static void |
invokeAction(Action action,
ActionEvent ev,
boolean asynchronous,
Runnable invoker)
Invokes the action in the currently registered ActionsBridge.
|
protected abstract void invokeAction(Action action, ActionEvent ev)
action
- the action to invokeev
- the event used during invocationpublic static void invokeAction(Action action, ActionEvent ev, boolean asynchronous, Runnable invoker)
action
- the action that is to be invokedev
- the event used to invoke the actionasynchronous
- shall the execution be performed in a background thread?invoker
- the actual code that shall be performed to "run" the action. If null, action.actionPerformed(ev) will be called