郑永安
2023-09-19 69185134fcfaf913ea45f1255677225a2cc311a4
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
package com.gk.hotwork.Domain.Utils;
 
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
 
import java.util.List;
 
public class Tree implements java.io.Serializable {
 
    private static final long serialVersionUID = 980682543891282923L;
    private Long id;
    private String text;
    // open,closed
    private String state = "open";
    private boolean checked = false;
    private Object attributes;
 
    /** null不输出 **/
    @JsonInclude(Include.NON_NULL)
    private List<Tree> children;
    private String iconCls;
    private Long pid;
    /**
     * ajax,iframe,
     */
    private String openMode;
 
    public Long getId() {
        return id;
    }
 
    public void setId(Long 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 void setState(Byte opened) {
        this.state = (null != opened && opened == 1) ? "open" : "closed";
    }
 
    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 Long getPid() {
        return pid;
    }
 
    public void setPid(Long pid) {
        this.pid = pid;
    }
 
    public String getOpenMode() {
        return openMode;
    }
 
    public void setOpenMode(String openMode) {
        this.openMode = openMode;
    }
 
}