Mercurial > dive4elements > river
diff flys-client/src/main/java/de/intevation/flys/client/client/ui/DatacageWidget.java @ 1349:46a4b74d87bf
Allow (yet limited) usage of zus and flood-protection data in wdiffs.
flys-client/trunk@3020 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Tue, 18 Oct 2011 15:43:33 +0000 |
parents | 1627a28c4504 |
children | 01b18db3b288 |
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/DatacageWidget.java Tue Oct 18 15:20:24 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/DatacageWidget.java Tue Oct 18 15:43:33 2011 +0000 @@ -312,6 +312,11 @@ } + /** + * Adds to toLoad, from info in node. + * Afterwards, add all children of node to stack to parse (next time + * collectToLoads is called). + */ protected void collectToLoads(TreeNode node) { Stack<TreeNode> stack = new Stack<TreeNode>(); @@ -325,6 +330,14 @@ String out = node.getAttribute("out"); String name = node.getAttribute("facet"); String ids = node.getAttribute("ids"); + String debugAttributeValues = ""; + for (String attr: node.getAttributes()) { + debugAttributeValues += ("[" + attr +": " + + node.getAttributeAsString(attr) + "] "); + } + GWT.log("DatacageWidget.collectToLoad, attributes are " + + debugAttributeValues); + if(ids == null) ids = node.getAttribute("id"); toLoad.add(artifact, factory, out, name, ids); }