Package org.openstreetmap.josm.actions
Interface ParameterizedAction
- All Superinterfaces:
Action,ActionListener,AdaptableAction,EventListener
- All Known Implementing Classes:
SearchAction
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
Modifier and TypeMethodDescriptionvoidactionPerformed(ActionEvent e, Map<String, Object> parameters) Invoke action using the given parameters.List<ActionParameter<?>>Get the list of parameters that describe the action.Methods inherited from interface javax.swing.Action
accept, addPropertyChangeListener, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabledMethods inherited from interface java.awt.event.ActionListener
actionPerformed
-
Method Details
-
getActionParameters
Get the list of parameters that describe the action.- Returns:
- the list of parameters that describe the action
-
actionPerformed
Invoke action using the given parameters.- Parameters:
e- the ActionEventparameters- parameter map
-