yuxc
2023-04-11 5ce77f5db9439fb12dde261363c3cbaf4fdebb1e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
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 + '}';
    }
}