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