Last change
on this file since 294 was 294, checked in by imi, 17 years ago |
- renamed annotation presets to tagging presets
|
File size:
810 bytes
|
Line | |
---|
1 | package org.openstreetmap.josm.gui.tagging;
|
---|
2 |
|
---|
3 | import java.awt.event.ActionEvent;
|
---|
4 | import java.awt.event.ActionListener;
|
---|
5 |
|
---|
6 | import org.openstreetmap.josm.gui.dialogs.PropertiesDialog;
|
---|
7 |
|
---|
8 | /**
|
---|
9 | * Just an ActionListener that forwards calls to actionPerformed to some other
|
---|
10 | * listener doing some refresh stuff on the way.
|
---|
11 | * @author imi
|
---|
12 | */
|
---|
13 | public final class ForwardActionListener implements ActionListener {
|
---|
14 | public final TaggingPreset preset;
|
---|
15 |
|
---|
16 | private final PropertiesDialog propertiesDialog;
|
---|
17 |
|
---|
18 | public ForwardActionListener(PropertiesDialog propertiesDialog, TaggingPreset preset) {
|
---|
19 | this.propertiesDialog = propertiesDialog;
|
---|
20 | this.preset = preset;
|
---|
21 | }
|
---|
22 |
|
---|
23 | public void actionPerformed(ActionEvent e) {
|
---|
24 | this.propertiesDialog.taggingPresets.setSelectedIndex(0);
|
---|
25 | e.setSource(this);
|
---|
26 | preset.actionPerformed(e);
|
---|
27 | }
|
---|
28 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.