首页>代码>EasyUI Tree实现左键只选择叶子节点、右键浮动菜单实现增删改>/studyEasyuiTree/src/main/java/cn/temptation/util/TreeNode.java
001package cn.temptation.util;
002 
003import java.util.LinkedHashMap;
004import java.util.List;
005 
006/**
007 * EasyUI Tree的封装类
008 */
009public class TreeNode {
010    private Integer id;                      // 节点的 id
011    private Integer parentId;                // 父节点id,java生成树时使用
012    private String text;                    // 显示的节点文字。
013    private String iconCls;                 // 节点图标样式    "iconCls":"icon-save",  "iconCls":"icon-ok", 等
014    private String state;                   // 节点状态, 'open' 或 'closed',默认是 'open'。当设为 'closed' 时,此节点有子节点,并且将从远程站点加载它们。
015    private String flag;                    // 节点类型
016    private Integer trueId;                 // 应用系统真实 id
017    private boolean checked;                // 指示节点是否被选中。
018    private LinkedHashMap<?, ?> attributes; // 给一个节点追加的自定义属性。
019    private List<TreeNode> children;        // 定义了一些子节点的节点数组。
020    private String url;                     // 扩展属性url
021 
022    public Integer getTrueId() {
023        return trueId;
024    }
025 
026    public void setTrueId(Integer trueId) {
027        this.trueId = trueId;
028    }
029 
030    public String getFlag() {
031        return flag;
032    }
033 
034    public void setFlag(String flag) {
035        this.flag = flag;
036    }
037 
038    public Integer getId() {
039        return id;
040    }
041 
042    public void setId(Integer id) {
043        this.id = id;
044    }
045 
046    public Integer getParentId() {
047        return parentId;
048    }
049 
050    public void setParentId(Integer parentId) {
051        this.parentId = parentId;
052    }
053 
054    public String getText() {
055        return text;
056    }
057 
058    public void setText(String text) {
059        this.text = text;
060    }
061 
062    public String getIconCls() {
063        return iconCls;
064    }
065 
066    public void setIconCls(String iconCls) {
067        this.iconCls = iconCls;
068    }
069 
070    public String getState() {
071        return state;
072    }
073 
074    public void setState(String state) {
075        this.state = state;
076    }
077 
078    public boolean isChecked() {
079        return checked;
080    }
081 
082    public void setChecked(boolean checked) {
083        this.checked = checked;
084    }
085 
086    public LinkedHashMap<?, ?> getAttributes() {
087        return attributes;
088    }
089 
090    public void setAttributes(LinkedHashMap<?, ?> attributes) {
091        this.attributes = attributes;
092    }
093 
094    public List<TreeNode> getChildren() {
095        return children;
096    }
097 
098    public void setChildren(List<TreeNode> children) {
099        this.children = children;
100    }
101 
102    public String getUrl() {
103        return url;
104    }
105 
106    public void setUrl(String url) {
107        this.url = url;
108    }
109}
最近下载更多
caozongan  LV19 2022年2月21日
我寄愁心  LV8 2021年6月22日
sczyhtg  LV5 2021年6月18日
11703060125  LV8 2020年9月8日
13043860zj  LV16 2020年8月8日
8战魂5无双8  LV43 2020年8月7日
qq569786503  LV1 2020年4月15日
zhuhaijun  LV12 2020年3月5日
java_php  LV11 2020年2月21日
penglei2211231  LV1 2019年11月28日
最近浏览更多
微信网友_7161776601190400  LV1 2024年9月10日
lilu0226  LV7 2024年8月1日
jiemomo  LV12 2023年10月19日
张朕朕  LV3 2023年9月8日
微信网友_6591303770624000  LV1 2023年8月4日
陈围棋  LV1 2023年5月6日
liangshao  LV1 2023年5月2日
东北虎啸  LV3 2023年4月23日
hklark 2022年4月2日
暂无贡献等级
caozongan  LV19 2022年2月21日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友