zhuguifei
2026-03-10 58402bd5e762361363a0f7d7907153c77dbb819f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
package com.shlanbao.tzsc.base.model;
 
import java.util.List;
 
/**
 * Easyui Tree模型
 * <li>@author Leejean
 * <li>@create 2014-6-24 下午04:19:33
 */
@SuppressWarnings("serial")
public class Tree implements java.io.Serializable,Comparable<Tree> {
    private String id;
    private String text;
    private String state = "open";// open,closed
    private boolean checked = false;
    private Object attributes;
    private List<Tree> children;
    private String iconCls;
    private String pid;
    private Long seq;//排序
    @Override
    public int compareTo(Tree o) {
        if(o.getSeq()>this.seq){
            return -1;
        }else if(o.getSeq()<this.seq){
            return 2;
        }
        return 0;
    }
    public Tree() {
        // TODO Auto-generated constructor stub
    }
    
    public Tree(String id, String text, boolean checked, String pid) {
        super();
        this.id = id;
        this.text = text;
        this.checked = checked;
        this.pid = pid;
    }
 
    public String getId() {
        return id;
    }
 
    public void setId(String id) {
        this.id = id;
    }
 
    public String getText() {
        return text;
    }
 
    public void setText(String text) {
        this.text = text;
    }
 
    public String getState() {
        return state;
    }
 
    public void setState(String state) {
        this.state = state;
    }
 
    public boolean isChecked() {
        return checked;
    }
 
    public void setChecked(boolean checked) {
        this.checked = checked;
    }
 
    public Object getAttributes() {
        return attributes;
    }
 
    public void setAttributes(Object attributes) {
        this.attributes = attributes;
    }
 
    public List<Tree> getChildren() {
        return children;
    }
 
    public void setChildren(List<Tree> children) {
        this.children = children;
    }
 
    public String getIconCls() {
        return iconCls;
    }
 
    public void setIconCls(String iconCls) {
        this.iconCls = iconCls;
    }
 
    public String getPid() {
        return pid;
    }
 
    public void setPid(String pid) {
        this.pid = pid;
    }
    public Long getSeq() {
        return seq;
    }
    public void setSeq(Long seq) {
        this.seq = seq;
    }
    
}