首页>代码>EasyUI Tree实现左键只选择叶子节点、右键浮动菜单实现增删改>/studyEasyuiTree/src/main/java/cn/temptation/util/TreeNode.java
package cn.temptation.util;
import java.util.LinkedHashMap;
import java.util.List;
/**
* EasyUI Tree的封装类
*/
public class TreeNode {
private Integer id; // 节点的 id
private Integer parentId; // 父节点id,java生成树时使用
private String text; // 显示的节点文字。
private String iconCls; // 节点图标样式 "iconCls":"icon-save", "iconCls":"icon-ok", 等
private String state; // 节点状态, 'open' 或 'closed',默认是 'open'。当设为 'closed' 时,此节点有子节点,并且将从远程站点加载它们。
private String flag; // 节点类型
private Integer trueId; // 应用系统真实 id
private boolean checked; // 指示节点是否被选中。
private LinkedHashMap<?, ?> attributes; // 给一个节点追加的自定义属性。
private List<TreeNode> children; // 定义了一些子节点的节点数组。
private String url; // 扩展属性url
public Integer getTrueId() {
return trueId;
}
public void setTrueId(Integer trueId) {
this.trueId = trueId;
}
public String getFlag() {
return flag;
}
public void setFlag(String flag) {
this.flag = flag;
}
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public Integer getParentId() {
return parentId;
}
public void setParentId(Integer parentId) {
this.parentId = parentId;
}
public String getText() {
return text;
}
public void setText(String text) {
this.text = text;
}
public String getIconCls() {
return iconCls;
}
public void setIconCls(String iconCls) {
this.iconCls = iconCls;
}
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 LinkedHashMap<?, ?> getAttributes() {
return attributes;
}
public void setAttributes(LinkedHashMap<?, ?> attributes) {
this.attributes = attributes;
}
public List<TreeNode> getChildren() {
return children;
}
public void setChildren(List<TreeNode> children) {
this.children = children;
}
public String getUrl() {
return url;
}
public void setUrl(String url) {
this.url = url;
}
}
最近下载更多
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日

最近浏览