Mercurial > lada > lada-server
changeset 302:71284b42ba39
Added label attribute to the QueryFilter
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Fri, 16 Aug 2013 12:27:43 +0200 |
parents | 665370cb9d09 |
children | b9295222ff06 |
files | src/main/java/de/intevation/lada/model/query/QueryFilter.java src/main/java/de/intevation/lada/utils/QueryTools.java |
diffstat | 2 files changed, 12 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main/java/de/intevation/lada/model/query/QueryFilter.java Fri Aug 16 12:27:12 2013 +0200 +++ b/src/main/java/de/intevation/lada/model/query/QueryFilter.java Fri Aug 16 12:27:43 2013 +0200 @@ -5,13 +5,15 @@ { private String dataIndex; private String type; + private String label; public QueryFilter() { } - public QueryFilter(String dataIndex, String type) { + public QueryFilter(String dataIndex, String type, String label) { this.dataIndex = dataIndex; this.type = type; + this.label = label; } public String getDataIndex() { @@ -29,4 +31,12 @@ public void setType(String type) { this.type = type; } + + public String getLabel() { + return label; + } + + public void setLabel(String label) { + this.label = label; + } }
--- a/src/main/java/de/intevation/lada/utils/QueryTools.java Fri Aug 16 12:27:12 2013 +0200 +++ b/src/main/java/de/intevation/lada/utils/QueryTools.java Fri Aug 16 12:27:43 2013 +0200 @@ -54,6 +54,7 @@ QueryFilter qFilter = new QueryFilter(); qFilter.setDataIndex(filter.getString("dataIndex")); qFilter.setType(filter.getString("type")); + qFilter.setLabel(filter.getString("label")); qFilters.add(qFilter); } qConf.setFilters(qFilters);