📄 node.java
字号:
/**
* FileName:Node.java,v 1.0 created in 2008-11-7 上午11:27:14
* Created by 乔海燕
* Copyright (c) 2008 ecjtu
* All Rights Reserved.
*/
package cn.jx.ecjtu.oa.services;
import java.util.ArrayList;
import java.util.List;
import cn.jx.ecjtu.oa.ps.pojo.Dept;
/**
* 节点类
* @author qiao
* @version $Revision: 1.4 $
* @since 1.0
*/
public class Node {
private Node parent;
private List<Node> children;
private Object value;
public Node() {
this.children=new ArrayList<Node>();
}
public int getId(){
return ((Dept)value).getDept_id();
}
public String getName(){
return ((Dept)value).getName();
}
public List<Node> getChildren() {
return children;
}
public void setChildren(List<Node> children) {
this.children = children;
}
public Node getParent() {
return parent;
}
public void setParent(Node parent) {
this.parent = parent;
}
public Object getValue() {
return value;
}
public void setValue(Object value) {
this.value = value;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -