zoukankan      html  css  js  c++  java
  • ext树菜单实体类

    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;
        }
    }
  • 相关阅读:
    js 日期
    二级导航 css
    ajax 输出json数据
    三列板块 css效果
    随机18个数 js
    js 表单非空验证
    ajax案例,调用XML文件
    :hover 鼠标悬浮时(基本导航)
    下载html5-boilerplate(通过npm)
    鼠标滚动,导航置顶.纯css3的position: sticky;
  • 原文地址:https://www.cnblogs.com/zrui-xyu/p/4942852.html
Copyright © 2011-2022 走看看