Class ActionPerformedListener
java.lang.Object
ro.sync.exml.workspace.api.editor.page.author.actions.ActionPerformedListener
This listener can be registered for a certain action.
The listener will be triggered before an action is performed (and will be able to reject the default code which is executed when the action is performed).
The listener will also be triggered after an action is performed.
- Since:
- 15
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
afterActionPerformed
(Object actionEvent) This callback will be triggered after an action is performed.boolean
beforeActionPerformed
(Object actionEvent) This callback will be triggered before an action is performed (and will be able to reject the default code which is executed when the action is performed).
-
Constructor Details
-
ActionPerformedListener
public ActionPerformedListener()
-
-
Method Details
-
beforeActionPerformed
This callback will be triggered before an action is performed (and will be able to reject the default code which is executed when the action is performed). If the callback rejects, the other added listeners will also not get called.- Parameters:
actionEvent
- The action event. For Swing it is an instance of java.awt.event.ActionEvent. For Eclipse it is an instance of org.eclipse.swt.widgets.Event.- Returns:
true
to let the current action code execute,false
to inhibit it.
-
afterActionPerformed
This callback will be triggered after an action is performed.- Parameters:
actionEvent
- The action event. For Swing it is an instance of java.awt.event.ActionEvent. For Eclipse it is an instance of org.eclipse.swt.widgets.Event.
-