Mercurial > dive4elements > river
comparison 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 |
comparison
equal
deleted
inserted
replaced
1348:fb224f54c643 | 1349:46a4b74d87bf |
---|---|
310 collectToLoads(node); | 310 collectToLoads(node); |
311 fireOnDoubleClick(); | 311 fireOnDoubleClick(); |
312 } | 312 } |
313 | 313 |
314 | 314 |
315 /** | |
316 * Adds to toLoad, from info in node. | |
317 * Afterwards, add all children of node to stack to parse (next time | |
318 * collectToLoads is called). | |
319 */ | |
315 protected void collectToLoads(TreeNode node) { | 320 protected void collectToLoads(TreeNode node) { |
316 Stack<TreeNode> stack = new Stack<TreeNode>(); | 321 Stack<TreeNode> stack = new Stack<TreeNode>(); |
317 | 322 |
318 stack.push(node); | 323 stack.push(node); |
319 | 324 |
323 if (factory != null) { // we need at least a factory | 328 if (factory != null) { // we need at least a factory |
324 String artifact = node.getAttribute("artifact-id"); | 329 String artifact = node.getAttribute("artifact-id"); |
325 String out = node.getAttribute("out"); | 330 String out = node.getAttribute("out"); |
326 String name = node.getAttribute("facet"); | 331 String name = node.getAttribute("facet"); |
327 String ids = node.getAttribute("ids"); | 332 String ids = node.getAttribute("ids"); |
333 String debugAttributeValues = ""; | |
334 for (String attr: node.getAttributes()) { | |
335 debugAttributeValues += ("[" + attr +": " | |
336 + node.getAttributeAsString(attr) + "] "); | |
337 } | |
338 GWT.log("DatacageWidget.collectToLoad, attributes are " | |
339 + debugAttributeValues); | |
340 if(ids == null) ids = node.getAttribute("id"); | |
328 | 341 |
329 toLoad.add(artifact, factory, out, name, ids); | 342 toLoad.add(artifact, factory, out, name, ids); |
330 } | 343 } |
331 TreeNode [] children = tree.getChildren(node); | 344 TreeNode [] children = tree.getChildren(node); |
332 if (children != null) { | 345 if (children != null) { |