|
org.openide.util 8.6.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openide.util.actions.ActionInvoker
public abstract class ActionInvoker
A mixture of a utility class allowing to invoke actions and also a code injection mechanism to allow overall system to be aware of invoked actions.
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.
Constructor Summary | |
---|---|
protected |
ActionInvoker()
Subclass constructor. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected ActionInvoker()
Method Detail |
---|
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
|
org.openide.util 8.6.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |