65 lines
1.4 KiB
Java
65 lines
1.4 KiB
Java
package com.tenwa.orginfo;
|
|
|
|
import java.util.ArrayList;
|
|
import java.util.HashMap;
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
|
|
public class ETreeItem {
|
|
private String id;
|
|
private String pid;
|
|
private String text;
|
|
private List<ETreeItem>chilren=new ArrayList<ETreeItem>();
|
|
private String iconCls;
|
|
private Map<String,String>attributes=new HashMap<String,String>();
|
|
|
|
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 List<ETreeItem> getChilren() {
|
|
return chilren;
|
|
}
|
|
public void setChilren(List<ETreeItem> chilren) {
|
|
this.chilren = chilren;
|
|
}
|
|
public String getIconCls() {
|
|
return iconCls;
|
|
}
|
|
public void setIconCls(String iconCls) {
|
|
this.iconCls = iconCls;
|
|
}
|
|
public Map<String, String> getAttributes() {
|
|
return attributes;
|
|
}
|
|
public void setAttributes(Map<String, String> attributes) {
|
|
this.attributes = attributes;
|
|
}
|
|
|
|
public String getPid() {
|
|
return pid;
|
|
}
|
|
public void setPid(String pid) {
|
|
this.pid = pid;
|
|
}
|
|
public ETreeItem(String id,String pid, String text,String iconCls, Map<String, String> attributes) {
|
|
this.id = id;
|
|
this.pid=pid;
|
|
this.text = text;
|
|
this.chilren = chilren;
|
|
this.iconCls = iconCls;
|
|
this.attributes = attributes;
|
|
}
|
|
public void addChildern(ETreeItem item){
|
|
this.chilren.add(item);
|
|
}
|
|
}
|