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辅助类
最新推荐文章于 2014-01-02 15:48:43 发布