码迷,mamicode.com
首页 > 其他好文 > 详细

ext树菜单实体类

时间:2015-11-06 16:11:50      阅读:198      评论:0      收藏:0      [点我收藏+]

标签:

package cn.edu.hbcf.common.vo;

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

/**
 * ext树菜单
 * 
 * @author 
 * @date 2012-02-24 19:06:00
 * 
 */
public class Tree {

    private String id;
    private String name;
    private String text;
    private String iconCls;
    private boolean expanded;
    private boolean leaf;
    private String url;
    private List<Tree> children;
    private int appId;
    public Tree(){
        
    }
    
    public Tree(String id,String text){
        this.id = id;
        this.text = text;
    }
    
    public Tree(String id,String text,boolean leaf){
        this.id = id;
        this.text = text;
        this.leaf = leaf;
        if(!leaf){
            children = new ArrayList<Tree>();
        }
    }
    
    
    public int getAppId() {
        return appId;
    }

    public void setAppId(int appId) {
        this.appId = appId;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public String getIconCls() {
        return iconCls;
    }

    public void setIconCls(String iconCls) {
        this.iconCls = iconCls;
    }

    public boolean getExpanded() {
        return expanded;
    }

    public void setExpanded(boolean expanded) {
        this.expanded = expanded;
    }

    public boolean getLeaf() {
        return leaf;
    }

    public void setLeaf(boolean leaf) {
        this.leaf = leaf;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public List<Tree> getChildren() {
        return children;
    }

    public void setChildren(List<Tree> children) {
        this.children = children;
    }
}

 

ext树菜单实体类

标签:

原文地址:http://www.cnblogs.com/zrui-xyu/p/4942852.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!