src/com/sxt/sys/utils/TreeNode.java
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
package com.sxt.sys.utils;
import java.util.ArrayList;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;
public class TreeNode {
private Integer id;
@JsonProperty("parentId")
private Integer pid;
private String title;
private String icon;
private String href;
private Boolean spread;
private String target;
private List<TreeNode> children = new ArrayList<>();
// 复选树的必要属性
private String checkArr="0";//选中就是1
/**
* 首页左边导航树的构造器
*
* @param id
* @param pid
* @param title
* @param icon
* @param href
* @param spread
* @param target
*/
public TreeNode(Integer id, Integer pid, String title, String icon, String href, Boolean spread, String target) {
super();
this.id = id;
this.pid = pid;
this.title = title;
this.icon = icon;
this.href = href;
this.spread = spread;
this.target = target;
}
/**
* dtree的复选树使用
*
* @param id
* @param pid
* @param title
* @param spread
* @param checkArr
*/
public TreeNode(Integer id, Integer pid, String title, Boolean spread, String checkArr) {
super();
this.id = id;
this.pid = pid;
this.title = title;
this.spread = spread;
后面还有 75 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。