@API(type=NOT_EXTENDABLE, src=PUBLIC) public interface ActionsProvider
Modifier and Type | Method and Description |
---|---|
void |
addActionPerformedListener(java.lang.Object action,
ActionPerformedListener listener)
Add a listener which gets triggered before and after a certain action is triggered.
|
java.lang.String |
getActionID(java.lang.Object action)
Get an unique ID (which does not depend on the action name) for an action Oxygen has mounted on the main JMenuBar or on the toolbars.
|
void |
invokeAction(java.lang.Object action)
If an action was obtained using one of the methods in this interface this method
provides means to invoke an action on AWT thread (for the standalone distribution) or SWT thread (for the eclipse distribution).
|
void |
removeActionPerformedListener(java.lang.Object action,
ActionPerformedListener listener)
Remove the listener which gets triggered before and after a certain action is triggered.
|
void invokeAction(java.lang.Object action)
action
- The action to invokejava.lang.String getActionID(java.lang.Object action)
action
- The action for which to retrieve the ID.null
if the action is not one provided by Oxygen.void addActionPerformedListener(java.lang.Object action, ActionPerformedListener listener)
action
- The action on which to add the listener.listener
- The listener.Please note that this API is not marked as final and it can change in one of the next versions of the application. If you have suggestions, comments about it, please let us know.
void removeActionPerformedListener(java.lang.Object action, ActionPerformedListener listener)
action
- The action.listener
- The listener.Please note that this API is not marked as final and it can change in one of the next versions of the application. If you have suggestions, comments about it, please let us know.
© Copyright Syncro Soft SRL 2002 - 2014. All rights reserved.