public abstract class ActionInvoker
extends java.lang.Object
Callers shall use the 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 | Description |
|---|---|---|
protected |
ActionInvoker() |
Subclass constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
protected abstract void |
invokeAction(javax.swing.Action action,
java.awt.event.ActionEvent ev) |
An infrastructure method that handles invocation of an an action.
|
static void |
invokeAction(javax.swing.Action action,
java.awt.event.ActionEvent ev,
boolean asynchronous,
java.lang.Runnable invoker) |
Invokes the action in the currently registered ActionsBridge.
|
protected abstract void invokeAction(javax.swing.Action action,
java.awt.event.ActionEvent ev)
action - the action to invokeev - the event used during invocationpublic static void invokeAction(javax.swing.Action action,
java.awt.event.ActionEvent ev,
boolean asynchronous,
java.lang.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 calledBuilt on April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.