Mercurial > dive4elements > river
diff flys-client/src/main/java/de/intevation/flys/client/client/widgets/tree/AttributedTreeNode.java @ 814:6db4839e0ba1
Datacage: Added a subclass of TreeNode to carry the informations needed by the loading listeners.
flys-client/trunk@2470 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Mon, 08 Aug 2011 16:19:00 +0000 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/widgets/tree/AttributedTreeNode.java Mon Aug 08 16:19:00 2011 +0000 @@ -0,0 +1,43 @@ +package de.intevation.flys.client.client.widgets.tree; + +import com.smartgwt.client.widgets.tree.TreeNode; + +import com.google.gwt.core.client.JavaScriptObject; + +import de.intevation.flys.client.shared.model.AttrList; + +public class AttributedTreeNode +extends TreeNode +{ + protected AttrList attrs; + + public AttributedTreeNode() { + } + + public AttributedTreeNode(JavaScriptObject jsObj) { + super(jsObj); + } + + public AttributedTreeNode(String name) { + super(name); + } + + public AttributedTreeNode(String name, TreeNode ... children) { + super(name, children); + } + + public AttributedTreeNode(String name, AttrList attrs) { + super(name); + this.attrs = attrs; + } + + public AttributedTreeNode(String name, AttrList attrs, TreeNode ... children) { + super(name, children); + this.attrs = attrs; + } + + public AttrList getSpecialAttributes() { + return attrs; + } +} +// vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :