From 63c2a59dd7ded5ba27474c3ee423cf54472801ad Mon Sep 17 00:00:00 2001 From: Jean-Michel Glorian Date: Tue, 17 May 2016 10:14:48 +0200 Subject: [PATCH] create a new Contrcutor with a default ViewListener --- src/main/java/eu/omp/irap/vespa/epntapclient/gui/requestpanel/paramfield/TargetNameField.java | 10 ++++++++++ 1 file changed, 10 insertions(+), 0 deletions(-) diff --git a/src/main/java/eu/omp/irap/vespa/epntapclient/gui/requestpanel/paramfield/TargetNameField.java b/src/main/java/eu/omp/irap/vespa/epntapclient/gui/requestpanel/paramfield/TargetNameField.java index 8bbdf9a..b6bb046 100644 --- a/src/main/java/eu/omp/irap/vespa/epntapclient/gui/requestpanel/paramfield/TargetNameField.java +++ b/src/main/java/eu/omp/irap/vespa/epntapclient/gui/requestpanel/paramfield/TargetNameField.java @@ -17,6 +17,7 @@ package eu.omp.irap.vespa.epntapclient.gui.requestpanel.paramfield; import java.awt.Dimension; +import java.io.File; import java.util.logging.Level; import javax.swing.JComboBox; @@ -71,6 +72,15 @@ public class TargetNameField extends ParamField implements TextFieldListener { ParamField.addChangeListener(this, field); this.add(comboBox); } + + public TargetNameField(String paraName) { + this(new ViewListener() { + public void onServiceSelected(int selectedService) {} + public void onSendButtonClicked(String query) {} + public void onParameterRemoved(String paramName) {} + public void onParameterChanged(String paramName, Object paramValue) {} + public void onDownloadButtonClicked(File outputFile) {}}, paraName); + } /** * This method is called each time the field is modified. -- libgit2 0.21.2