zTree第四章,异步加载,后端
后端
-------------------------------------------------------------------------------------------------
后端的TreeBean
-------------------------------------------------------------------------------------------------
import java.util.List;
public class TreeBean implements Serializable {
private String id;
private String name;
private int floor;
private int seq;
private String pId;
private String iconOpen;
private String iconClose;
private String icon;
private List<TreeBean> children;//子节点
private Boolean isParent;
private Boolean open;
}
-------------------------------------------------------------------------------------------------
后端的TreeBean通常是由业务bean转化而来,这里面就一般需要一个转换bean的通用方法