Mercurial > dive4elements > river
diff flys-client/src/main/java/de/intevation/flys/client/shared/model/DataCageNode.java @ 892:63b258bf365c
Bugfix: Use name instead of description for loading new facets via Datacage.
flys-client/trunk@2735 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Wed, 14 Sep 2011 10:00:55 +0000 |
parents | 57ea5af8a967 |
children |
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/shared/model/DataCageNode.java Wed Sep 14 09:45:37 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/shared/model/DataCageNode.java Wed Sep 14 10:00:55 2011 +0000 @@ -8,6 +8,7 @@ public class DataCageNode implements Serializable { protected String name; + protected String description; protected List<DataCageNode> children; protected AttrList attrs; @@ -19,14 +20,23 @@ } public DataCageNode(String name, AttrList attrs) { - this.name = name; - this.attrs = attrs; + this(name, name, attrs); + } + + public DataCageNode(String name, String description, AttrList attrs) { + this.name = name; + this.description = description; + this.attrs = attrs; } public String getName() { return name; } + public String getDescription() { + return description; + } + public void setName(String name) { this.name = name; }