comparison 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
comparison
equal deleted inserted replaced
813:57ea5af8a967 814:6db4839e0ba1
1 package de.intevation.flys.client.client.widgets.tree;
2
3 import com.smartgwt.client.widgets.tree.TreeNode;
4
5 import com.google.gwt.core.client.JavaScriptObject;
6
7 import de.intevation.flys.client.shared.model.AttrList;
8
9 public class AttributedTreeNode
10 extends TreeNode
11 {
12 protected AttrList attrs;
13
14 public AttributedTreeNode() {
15 }
16
17 public AttributedTreeNode(JavaScriptObject jsObj) {
18 super(jsObj);
19 }
20
21 public AttributedTreeNode(String name) {
22 super(name);
23 }
24
25 public AttributedTreeNode(String name, TreeNode ... children) {
26 super(name, children);
27 }
28
29 public AttributedTreeNode(String name, AttrList attrs) {
30 super(name);
31 this.attrs = attrs;
32 }
33
34 public AttributedTreeNode(String name, AttrList attrs, TreeNode ... children) {
35 super(name, children);
36 this.attrs = attrs;
37 }
38
39 public AttrList getSpecialAttributes() {
40 return attrs;
41 }
42 }
43 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org