Package org.openstreetmap.josm.actions
Interface ParameterizedAction
-
- All Superinterfaces:
Action
,ActionListener
,AdaptableAction
,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(ActionEvent e, Map<String,Object> parameters)
Invoke action using the given parameters.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
List<ActionParameter<?>> getActionParameters()
Get the list of parameters that describe the action.- Returns:
- the list of parameters that describe the action
-
actionPerformed
void actionPerformed(ActionEvent e, Map<String,Object> parameters)
Invoke action using the given parameters.- Parameters:
e
- the ActionEventparameters
- parameter map
-
-