1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.krad.uif.control;
17
18 import org.kuali.rice.krad.datadictionary.parse.BeanTag;
19 import org.kuali.rice.krad.datadictionary.parse.BeanTagAttribute;
20 import org.kuali.rice.krad.datadictionary.parse.BeanTags;
21
22
23
24
25
26
27
28 @BeanTags({@BeanTag(name = "dropdownControl-bean", parent = "Uif-DropdownControl"),
29 @BeanTag(name = "multiSelectControl-bean", parent = "Uif-MultiSelectControl")})
30 public class SelectControl extends MultiValueControlBase implements SizedControl {
31 private static final long serialVersionUID = 6443247954759096815L;
32
33 private int size;
34 private boolean multiple;
35
36 public SelectControl() {
37 size = 1;
38 multiple = false;
39 }
40
41
42
43
44
45
46
47 @BeanTagAttribute(name="size")
48 public int getSize() {
49 return this.size;
50 }
51
52
53
54
55 public void setSize(int size) {
56 this.size = size;
57 }
58
59
60
61
62
63
64
65
66
67
68 @BeanTagAttribute(name="multiple")
69 public boolean isMultiple() {
70 return this.multiple;
71 }
72
73
74
75
76
77
78 public void setMultiple(boolean multiple) {
79 this.multiple = multiple;
80 }
81
82
83
84
85 @Override
86 protected <T> void copyProperties(T component) {
87 super.copyProperties(component);
88 SelectControl selectControlCopy = (SelectControl) component;
89 selectControlCopy.setSize(this.getSize());
90 selectControlCopy.setMultiple(this.isMultiple());
91 }
92 }