Package org.openstreetmap.josm.actions
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).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidactionPerformed(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.
-
-
-
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 ActionEventparameters- parameter map
-
-