TreeNodeManager.java
资源名称:EXT_study.rar [点击查看]
上传用户:zaktkj
上传日期:2022-08-08
资源大小:5770k
文件大小:1k
源码类别:
JavaScript
开发平台:
JavaScript
- package dwr;
- import java.util.List;
- import java.util.ArrayList;
- /**
- * 树节点管理器.
- * @author Lingo
- */
- public class TreeNodeManager {
- public List getTree(String id) {
- List list = new ArrayList();
- String seed1 = id + 1;
- String seed2 = id + 2;
- String seed3 = id + 3;
- list.add(new TreeNode(seed1, "" + seed1, false));
- list.add(new TreeNode(seed2, "" + seed2, false));
- list.add(new TreeNode(seed3, "" + seed3, true));
- return list;
- }
- }