日期:2014-05-16  浏览次数:20351 次

extjs学习笔记三[Ext+json+jsp构建的动态树]

树节点组合模型
package cn.com.jsnh.model.catalog;

public class TreeModel {
private String node;
private CatalogModel model;

public String getNode() {
return node;
}

public void setNode(String node) {
this.node = node;
}

public CatalogModel getModel() {
return model;
}

public void setModel(CatalogModel model) {
this.model = model;
}

}

栏目模型【实际的树节点】
package cn.com.jsnh.model.catalog;

public class CatalogModel {
private String id;
private String text;
private Boolean leaf;
private String cls;
private String action;
private String model;

public String getId() {
return id;
}

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

public String getText() {
return text;
}

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

public Boolean getLeaf() {
return leaf;
}

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