source: josm/trunk/src/org/openstreetmap/josm/actions/ParameterizedAction.java@ 17534

Last change on this file since 17534 was 12546, checked in by bastiK, 7 years ago

see #14794 - javadoc

  • Property svn:eol-style set to native
File size: 776 bytes
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.actions;
3
4import java.awt.event.ActionEvent;
5import java.util.List;
6import java.util.Map;
7
8/**
9 * Interface for (toolbar-)actions that have additional parameters which need
10 * to be saved to the preferences (and loaded back).
11 */
12public interface ParameterizedAction extends AdaptableAction {
13
14 /**
15 * Get the list of parameters that describe the action.
16 * @return the list of parameters that describe the action
17 */
18 List<ActionParameter<?>> getActionParameters();
19
20 /**
21 * Invoke action using the given parameters.
22 * @param e the ActionEvent
23 * @param parameters parameter map
24 */
25 void actionPerformed(ActionEvent e, Map<String, Object> parameters);
26}
Note: See TracBrowser for help on using the repository browser.