package com.vci.ubcs.code.bo;
|
|
|
import com.vci.ubcs.code.vo.pagemodel.TreeQueryObject;
|
|
import java.io.Serializable;
|
|
public class TreeWrapperOptions implements Serializable {
|
private static final long serialVersionUID = 3183500138266494574L;
|
private String textFieldName = "name";
|
private String textValueSep = " ";
|
private String parentFieldName;
|
private String oidFieldName = "oid";
|
private String oidValueSep = ",";
|
private boolean allAttributes = true;
|
private String parentOid;
|
private boolean multipleSelect = false;
|
private boolean showCheckBox = false;
|
|
public TreeWrapperOptions() {
|
}
|
|
public TreeWrapperOptions(String parentFieldName) {
|
this.parentFieldName = parentFieldName;
|
}
|
|
public TreeWrapperOptions(String textFieldName, String parentFieldName) {
|
this.textFieldName = textFieldName;
|
this.parentFieldName = parentFieldName;
|
}
|
|
public TreeWrapperOptions(String textFieldName, String parentFieldName, String parentOid) {
|
this.textFieldName = textFieldName;
|
this.parentFieldName = parentFieldName;
|
this.parentOid = parentOid;
|
}
|
|
public void copyFromTreeQuery(TreeQueryObject treeQueryObject) {
|
if (treeQueryObject != null) {
|
this.parentOid = treeQueryObject.getParentOid();
|
this.multipleSelect = treeQueryObject.isMultipleSelect();
|
this.showCheckBox = treeQueryObject.isShowCheckBox();
|
}
|
|
}
|
|
public String getTextFieldName() {
|
return this.textFieldName;
|
}
|
|
public void setTextFieldName(String textFieldName) {
|
this.textFieldName = textFieldName;
|
}
|
|
public String getParentFieldName() {
|
return this.parentFieldName;
|
}
|
|
public void setParentFieldName(String parentFieldName) {
|
this.parentFieldName = parentFieldName;
|
}
|
|
public String getOidFieldName() {
|
return this.oidFieldName;
|
}
|
|
public void setOidFieldName(String oidFieldName) {
|
this.oidFieldName = oidFieldName;
|
}
|
|
public boolean isAllAttributes() {
|
return this.allAttributes;
|
}
|
|
public void setAllAttributes(boolean allAttributes) {
|
this.allAttributes = allAttributes;
|
}
|
|
public String getParentOid() {
|
return this.parentOid;
|
}
|
|
public void setParentOid(String parentOid) {
|
this.parentOid = parentOid;
|
}
|
|
public boolean isMultipleSelect() {
|
return this.multipleSelect;
|
}
|
|
public void setMultipleSelect(boolean multipleSelect) {
|
this.multipleSelect = multipleSelect;
|
}
|
|
public boolean isShowCheckBox() {
|
return this.showCheckBox;
|
}
|
|
public void setShowCheckBox(boolean showCheckBox) {
|
this.showCheckBox = showCheckBox;
|
}
|
|
public String getTextValueSep() {
|
return this.textValueSep;
|
}
|
|
public void setTextValueSep(String textValueSep) {
|
this.textValueSep = textValueSep;
|
}
|
|
public String getOidValueSep() {
|
return this.oidValueSep;
|
}
|
|
public void setOidValueSep(String oidValueSep) {
|
this.oidValueSep = oidValueSep;
|
}
|
|
public String toString() {
|
return "TreeWrapperOptions{textFieldName='" + this.textFieldName + '\'' + ", textValueSep='" + this.textValueSep + '\'' + ", parentFieldName='" + this.parentFieldName + '\'' + ", oidFieldName='" + this.oidFieldName + '\'' + ", oidValueSep='" + this.oidValueSep + '\'' + ", allAttributes=" + this.allAttributes + ", parentOid='" + this.parentOid + '\'' + ", multipleSelect=" + this.multipleSelect + ", showCheckBox=" + this.showCheckBox + '}';
|
}
|
}
|