Line | |
---|
1 | // License: GPL. For details, see LICENSE file.
|
---|
2 | package org.openstreetmap.josm.actions;
|
---|
3 |
|
---|
4 | import java.awt.event.ActionEvent;
|
---|
5 | import java.util.List;
|
---|
6 | import 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 | */
|
---|
12 | public 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.