您的位置:首页 > 其它

ext树菜单实体类

2015-11-06 15:51 134 查看
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;
}
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: