diff --git a/src/main/java/eu/omp/irap/vespa/epntapclient/gui/GUIController.java b/src/main/java/eu/omp/irap/vespa/epntapclient/gui/GUIController.java index 976d276..76f5961 100644 --- a/src/main/java/eu/omp/irap/vespa/epntapclient/gui/GUIController.java +++ b/src/main/java/eu/omp/irap/vespa/epntapclient/gui/GUIController.java @@ -47,6 +47,8 @@ public class GUIController extends EpnTapController implements ViewListener { /** The URL of the service corresponding to the selected table. */ private String selectedTableServiceURL; + private int nbMaxResult = 10; + public GUIController() { super(); @@ -128,10 +130,24 @@ public class GUIController extends EpnTapController implements ViewListener { * Update the query area with a working ADQL query, based on the parameters list. */ private void updateQueryArea() { - String query = Queries.getQuery(selectedTableName, paramValues, 10); + String query = Queries.getQuery(selectedTableName, paramValues, getNbMaxResult()); mainView.getRequestPanel().updateQueryArea(query); } + /** + * @return the nb max of result + */ + public int getNbMaxResult() { + return nbMaxResult; + } + + /** + * set the nb max of result for a query + */ + public void setNbMaxResult(int nb) { + nbMaxResult = nb; + } + public void updateService(String serviceURL, String tableName) { if (!tableName.equals(selectedTableName)) { selectedTableServiceURL = serviceURL; -- libgit2 0.21.2