public static class DirectoryInTreeCheck extends DirectoryInTree{
private static final long serialVersionUID = 810485397912266321L;
private boolean checked;//爲了前臺需要添加的,前臺可以有多選的功能。
DirectoryInTreeCheck(Directory dir){
super(dir);
}
public boolean isChecked() {
return checked;
}
public void setChecked(boolean checked) {
this.checked = checked;
}
}
public static class DirectoryInTree extends Directory{
private static final long serialVersionUID = 7051497115371661530L;
private boolean leaf = true;
private String fullid;
private String reserve; //備用字段,前臺可以改變他來實現某些操作
//private boolean expanded;
DirectoryInTree(Directory dir){
this.id=dir.getId();
this.name=dir.getName();
this.priority = dir.getPriority();
this.alias = dir.getAlias();
this.properties = dir.getProperties();
if(dir instanceof Unit)
this.leaf = false;
this.reserve="reserve";
}
public String getReserve() {
return reserve;
}
public void setReserve(String reserve) {
this.reserve = reserve;
}
public boolean isLeaf() {
return leaf;
}
public void setLeaf(boolean leaf) {
this.leaf = leaf;
}
public String getFullid() {
return fullid;
}
public void setFullid(String fullid) {
this.fullid = fullid;
}
}
ext 後臺java輔助類
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.