提交 | 用户 | 时间
|
1ac2bc
|
1 |
/** |
懒 |
2 |
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng) |
|
3 |
* <p> |
|
4 |
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
5 |
* you may not use this file except in compliance with the License. |
|
6 |
* You may obtain a copy of the License at |
|
7 |
* <p> |
|
8 |
* http://www.apache.org/licenses/LICENSE-2.0 |
|
9 |
* <p> |
|
10 |
* Unless required by applicable law or agreed to in writing, software |
|
11 |
* distributed under the License is distributed on an "AS IS" BASIS, |
|
12 |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
13 |
* See the License for the specific language governing permissions and |
|
14 |
* limitations under the License. |
|
15 |
*/ |
|
16 |
package cn.stylefeng.guns.base.pojo.node; |
|
17 |
|
|
18 |
import cn.stylefeng.roses.kernel.model.tree.Tree; |
|
19 |
import lombok.Data; |
|
20 |
|
|
21 |
import java.util.List; |
|
22 |
|
|
23 |
/** |
|
24 |
* jquery ztree 插件的节点 |
|
25 |
* |
|
26 |
* @author fengshuonan |
|
27 |
* @date 2017年2月17日 下午8:25:14 |
|
28 |
*/ |
|
29 |
@Data |
|
30 |
public class TreeviewNode implements Tree { |
|
31 |
|
|
32 |
/** |
|
33 |
* 附加信息,一般用于存业务id |
|
34 |
*/ |
|
35 |
private String tags; |
|
36 |
|
|
37 |
/** |
|
38 |
* 父级id |
|
39 |
*/ |
|
40 |
private String parentId; |
|
41 |
|
|
42 |
/** |
|
43 |
* 节点名称 |
|
44 |
*/ |
|
45 |
private String text; |
|
46 |
|
|
47 |
/** |
|
48 |
* 子节点 |
|
49 |
*/ |
|
50 |
private List<TreeviewNode> nodes; |
|
51 |
|
|
52 |
@Override |
|
53 |
public String getNodeId() { |
|
54 |
return tags; |
|
55 |
} |
|
56 |
|
|
57 |
@Override |
|
58 |
public String getNodeParentId() { |
|
59 |
return parentId; |
|
60 |
} |
|
61 |
|
|
62 |
@Override |
|
63 |
public void setChildrenNodes(List childrenNodes) { |
|
64 |
this.nodes = childrenNodes; |
|
65 |
} |
|
66 |
} |