Interface ActionModel

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.Iterable<ActionListener> getActionListeners()  
      void performAction()
      Performs the action with default force and default option.
      void performAction​(int force, int option)
      Performs the action with the given force and option.
      • Methods inherited from interface com.globalmentor.beans.PropertyBindable

        addPropertyChangeListener, addPropertyChangeListener, getPropertyChangeListeners, getPropertyChangeListeners, hasPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener
      • Methods inherited from interface com.globalmentor.beans.PropertyConstrainable

        addVetoableChangeListener, addVetoableChangeListener, getVetoableChangeListeners, getVetoableChangeListeners, hasVetoableChangeListeners, removeVetoableChangeListener, removeVetoableChangeListener
    • Method Detail

      • getActionListeners

        java.lang.Iterable<ActionListener> getActionListeners()
        Returns:
        all registered action listeners.
      • performAction

        void performAction​(int force,
                           int option)
        Performs the action with the given force and option. An ActionEvent is fired to all registered ActionListeners.
        Parameters:
        force - The zero-based force, such as 0 for no force or 1 for an action initiated by from a mouse single click.
        option - The zero-based option, such as 0 for an event initiated by a mouse left button click or 1 for an event initiated by a mouse right button click.