Commit 63c2a59dd7ded5ba27474c3ee423cf54472801ad
1 parent
eda63a5c
Exists in
master
create a new Contrcutor with a default ViewListener
Showing
1 changed file
with
10 additions
and
0 deletions
Show diff stats
src/main/java/eu/omp/irap/vespa/epntapclient/gui/requestpanel/paramfield/TargetNameField.java
@@ -17,6 +17,7 @@ | @@ -17,6 +17,7 @@ | ||
17 | package eu.omp.irap.vespa.epntapclient.gui.requestpanel.paramfield; | 17 | package eu.omp.irap.vespa.epntapclient.gui.requestpanel.paramfield; |
18 | 18 | ||
19 | import java.awt.Dimension; | 19 | import java.awt.Dimension; |
20 | +import java.io.File; | ||
20 | import java.util.logging.Level; | 21 | import java.util.logging.Level; |
21 | 22 | ||
22 | import javax.swing.JComboBox; | 23 | import javax.swing.JComboBox; |
@@ -71,6 +72,15 @@ public class TargetNameField extends ParamField implements TextFieldListener { | @@ -71,6 +72,15 @@ public class TargetNameField extends ParamField implements TextFieldListener { | ||
71 | ParamField.addChangeListener(this, field); | 72 | ParamField.addChangeListener(this, field); |
72 | this.add(comboBox); | 73 | this.add(comboBox); |
73 | } | 74 | } |
75 | + | ||
76 | + public TargetNameField(String paraName) { | ||
77 | + this(new ViewListener() { | ||
78 | + public void onServiceSelected(int selectedService) {} | ||
79 | + public void onSendButtonClicked(String query) {} | ||
80 | + public void onParameterRemoved(String paramName) {} | ||
81 | + public void onParameterChanged(String paramName, Object paramValue) {} | ||
82 | + public void onDownloadButtonClicked(File outputFile) {}}, paraName); | ||
83 | + } | ||
74 | 84 | ||
75 | /** | 85 | /** |
76 | * This method is called each time the field is modified. | 86 | * This method is called each time the field is modified. |