Class ActionPerformedListener


  • @API(type=EXTENDABLE,
         src=PUBLIC)
    public abstract class ActionPerformedListener
    extends java.lang.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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void afterActionPerformed​(java.lang.Object actionEvent)
      This callback will be triggered after an action is performed.
      boolean beforeActionPerformed​(java.lang.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).
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ActionPerformedListener

        public ActionPerformedListener()
    • Method Detail

      • beforeActionPerformed

        public boolean beforeActionPerformed​(java.lang.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​(java.lang.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.