@API(type=NOT_EXTENDABLE,
src=PUBLIC)
public interface CommonActionsProvider
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 actionOrUIObject)
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
or for an UI component like a JMenuItem or a JButton provided by Oxygen.
|
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 actionOrUIObject)
actionOrUIObject
- The action or UI component for which to retrieve the ID.null
if the ID could not be determined.void addActionPerformedListener(java.lang.Object action, ActionPerformedListener listener)
action
- The action on which to add the listener.listener
- The listener.void removeActionPerformedListener(java.lang.Object action, ActionPerformedListener listener)
action
- The action.listener
- The listener.© Copyright SyncRO Soft SRL 2002 - 2016. All rights reserved.