Interface ParameterizedAction

  • All Superinterfaces:
    javax.swing.Action, java.awt.event.ActionListener, AdaptableAction, java.util.EventListener
    All Known Implementing Classes:
    SearchAction

    public interface ParameterizedAction
    extends AdaptableAction
    Interface for (toolbar-)actions that have additional parameters which need to be saved to the preferences (and loaded back).
    • Field Summary

      • Fields inherited from interface javax.swing.Action

        ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void actionPerformed​(java.awt.event.ActionEvent e, java.util.Map<java.lang.String,​java.lang.Object> parameters)
      Invoke action using the given parameters.
      java.util.List<ActionParameter<?>> getActionParameters()
      Get the list of parameters that describe the action.
      • Methods inherited from interface javax.swing.Action

        accept, addPropertyChangeListener, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
      • Methods inherited from interface java.awt.event.ActionListener

        actionPerformed
    • Method Detail

      • getActionParameters

        java.util.List<ActionParameter<?>> getActionParameters()
        Get the list of parameters that describe the action.
        Returns:
        the list of parameters that describe the action
      • actionPerformed

        void actionPerformed​(java.awt.event.ActionEvent e,
                             java.util.Map<java.lang.String,​java.lang.Object> parameters)
        Invoke action using the given parameters.
        Parameters:
        e - the ActionEvent
        parameters - parameter map