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
|
Rev | Line | |
---|
[294] | 1 | package org.openstreetmap.josm.gui.tagging;
|
---|
[178] | 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 {
|
---|
[294] | 14 | public final TaggingPreset preset;
|
---|
[178] | 15 |
|
---|
| 16 | private final PropertiesDialog propertiesDialog;
|
---|
| 17 |
|
---|
[294] | 18 | public ForwardActionListener(PropertiesDialog propertiesDialog, TaggingPreset preset) {
|
---|
[178] | 19 | this.propertiesDialog = propertiesDialog;
|
---|
| 20 | this.preset = preset;
|
---|
| 21 | }
|
---|
| 22 |
|
---|
| 23 | public void actionPerformed(ActionEvent e) {
|
---|
[294] | 24 | this.propertiesDialog.taggingPresets.setSelectedIndex(0);
|
---|
[178] | 25 | e.setSource(this);
|
---|
| 26 | preset.actionPerformed(e);
|
---|
| 27 | }
|
---|
| 28 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.