⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 group.java

📁 开源项目simpleoa-0.3.zip是最新版本
💻 JAVA
字号:
package com.ejsun.entapps.domain.organization;

import java.util.ArrayList;
import java.util.List;

import com.ejsun.entapps.domain.NamedEntity;

/**
 * @author Labor
 * @since  2004-4-15
 * @version $Revision: 1.1 $
 * 
 **/

public class Group extends NamedEntity {

    private GroupType type;
    private Group parent;
    private List children = new ArrayList();
	
    public List getChildren() {
        return children;
    }

    public Group getParent() {
        return parent;
    }

    public GroupType getType() {
        return type;
    }

    public void setChildren(List list) {
        children = list;
    }

    public void setParent(Group group) {
        parent = group;
    }

    public void setType(GroupType type) {
        this.type = type;
    }

    public void addChild(Group group) {
        group.setParent(this);
        this.children.add(group);
    }

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -