Class ActionPerformedListener

java.lang.Object
ro.sync.exml.workspace.api.editor.page.author.actions.ActionPerformedListener

@API(type=EXTENDABLE, src=PUBLIC) public abstract class ActionPerformedListener extends Object
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 Details

    • ActionPerformedListener

      public ActionPerformedListener()
  • Method Details

    • beforeActionPerformed

      public 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). 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

      public void afterActionPerformed(Object actionEvent)
      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.