package com.jiuqi.njt.model; //树形结构节点类 public class UserTreeElement { private String id;// 当前节点id private String outlineTitle;// 当前节点文字 private boolean mhasParent;// 当前节点是否有父节点 private boolean mhasChild;// 当前节点是否有子节点 private int level;// 当前界面层级 private boolean expanded;// 是否处于展开状态 /** * 父节点 */ private String parent; private boolean isChecked; private String sim; private String isFail; //是否定位成功标示 private String failReason = ""; //失败原因 public String getFailReason() { return failReason; } public void setFailReason(String failReason) { this.failReason = failReason; } public String getIsFail() { return isFail; } public void setIsFail(String isFail) { this.isFail = isFail; } private String state; //是不是分组 private boolean isCooper; public boolean isCooper() { return isCooper; } public void setCooper(boolean isCooper) { this.isCooper = isCooper; } public String getState() { return state; } public void setState(String state) { this.state = state; } public String getSim() { return sim; } public void setSim(String sim) { this.sim = sim; } public boolean isChecked() { return isChecked; } public void setChecked(boolean isChecked) { this.isChecked = isChecked; } public void setCheckedToggle() { if (isChecked) { isChecked = false; } else { isChecked = true; } } public String getId() { return id; } public void setId(String id) { this.id = id; } public String getOutlineTitle() { return outlineTitle; } public void setOutlineTitle(String outlineTitle) { this.outlineTitle = outlineTitle; } public boolean isMhasParent() { return mhasParent; } public void setMhasParent(boolean mhasParent) { this.mhasParent = mhasParent; } public boolean isMhasChild() { return mhasChild; } public void setMhasChild(boolean mhasChild) { this.mhasChild = mhasChild; } public String getParent() { return parent; } public void setParent(String parent) { this.parent = parent; } public int getLevel() { return level; } public void setLevel(int level) { this.level = level; } public boolean isExpanded() { return expanded; } public void setExpanded(boolean expanded) { this.expanded = expanded; } public UserTreeElement(String id, String outlineTitle, boolean mhasParent, boolean mhasChild, String parent, int level, boolean expanded, String sim, String state , boolean isCooper) { super(); this.id = id; this.outlineTitle = outlineTitle; this.mhasParent = mhasParent; this.mhasChild = mhasChild; this.parent = parent; this.level = level; this.expanded = expanded; this.sim = sim; this.state = state; this.isCooper = isCooper; } public UserTreeElement(String id, String outlineTitle, boolean mhasParent, boolean mhasChild, boolean expanded,String state,String sim,String parent ) { super(); this.id = id; this.outlineTitle = outlineTitle; this.mhasParent = mhasParent; this.mhasChild = mhasChild; this.expanded = expanded; this.state = state; this.sim = sim; this.parent = parent; } }