package com.vci.starter.web.pagemodel;
|
|
|
/**
|
* @author ludc
|
* @date 2024/11/27 16:53
|
*/
|
public class BaseTree implements java.io.Serializable{
|
|
/**
|
* 禁止修改这个值
|
* @serial 序列化值
|
*/
|
private static final long serialVersionUID = 6886695271635257122L;
|
|
/**
|
* 主键
|
*/
|
private String oid;
|
|
/**
|
* 显示文本
|
*/
|
private String text;
|
|
/**
|
* 编号
|
*/
|
private String id;
|
|
/**
|
* 是否叶子
|
*/
|
private boolean leaf = false;
|
|
/**
|
* 是否显示复选框
|
*/
|
private boolean showCheckbox = false;
|
|
/**
|
* 是否默认选中
|
*/
|
private boolean checked = false;
|
|
/**
|
* 层级
|
*/
|
private int level;
|
|
/**
|
* 图标
|
*/
|
private String icon;
|
|
/**
|
* 图标样式
|
*/
|
private String iconCls;
|
|
/**
|
* 上级节点
|
*/
|
private String parentId;
|
|
/**
|
* 上级节点的名称
|
*/
|
private String parentName;
|
|
/**
|
* 上级节点的业务类型
|
*/
|
private String parentBtmName;
|
|
/**
|
* 是否展开
|
*/
|
private boolean expanded = false;
|
|
/**
|
* 链接
|
*/
|
private String href;//layui和extjs使用href,easyui使用url,统一href
|
|
/**
|
* 排序索引
|
*/
|
private String index;
|
|
/**
|
* 当前数据对象
|
*/
|
private Object data;
|
|
public void setOid(String oid) {
|
this.oid = oid;
|
}
|
|
public void setText(String text) {
|
this.text = text;
|
}
|
|
public void setId(String id) {
|
this.id = id;
|
}
|
|
public void setLeaf(boolean leaf) {
|
this.leaf = leaf;
|
}
|
|
public void setShowCheckbox(boolean showCheckbox) {
|
this.showCheckbox = showCheckbox;
|
}
|
|
public void setChecked(boolean checked) {
|
this.checked = checked;
|
}
|
|
public void setLevel(int level) {
|
this.level = level;
|
}
|
|
public void setIcon(String icon) {
|
this.icon = icon;
|
}
|
|
public void setIconCls(String iconCls) {
|
this.iconCls = iconCls;
|
}
|
|
public void setParentId(String parentId) {
|
this.parentId = parentId;
|
}
|
|
public void setParentName(String parentName) {
|
this.parentName = parentName;
|
}
|
|
public void setParentBtmName(String parentBtmName) {
|
this.parentBtmName = parentBtmName;
|
}
|
|
public void setExpanded(boolean expanded) {
|
this.expanded = expanded;
|
}
|
|
public void setHref(String href) {
|
this.href = href;
|
}
|
|
public void setIndex(String index) {
|
this.index = index;
|
}
|
|
public void setData(Object data) {
|
this.data = data;
|
}
|
|
public String getOid() {
|
return oid;
|
}
|
|
public String getText() {
|
return text;
|
}
|
|
public String getId() {
|
return id;
|
}
|
|
public boolean isLeaf() {
|
return leaf;
|
}
|
|
public boolean isShowCheckbox() {
|
return showCheckbox;
|
}
|
|
public boolean isChecked() {
|
return checked;
|
}
|
|
public int getLevel() {
|
return level;
|
}
|
|
public String getIcon() {
|
return icon;
|
}
|
|
public String getIconCls() {
|
return iconCls;
|
}
|
|
public String getParentId() {
|
return parentId;
|
}
|
|
public String getParentName() {
|
return parentName;
|
}
|
|
public String getParentBtmName() {
|
return parentBtmName;
|
}
|
|
public boolean isExpanded() {
|
return expanded;
|
}
|
|
public String getHref() {
|
return href;
|
}
|
|
public String getIndex() {
|
return index;
|
}
|
|
public Object getData() {
|
return data;
|
}
|
}
|