node.java

来自「oa办公系统」· Java 代码 · 共 54 行

JAVA
54
字号
/**
 * 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 + =
减小字号Ctrl + -
显示快捷键?