1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.krad.uif.element;
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.uif.component.Component;
21 import org.kuali.rice.krad.uif.widget.RichTable;
22
23 import java.util.List;
24 import java.util.Set;
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44 @BeanTag(name = "dataTable-bean", parent = "Uif-DataTable")
45 public class DataTable extends ContentElementBase {
46 private static final long serialVersionUID = 6201998559169962349L;
47
48 private RichTable richTable;
49
50 public DataTable() {
51 super();
52 }
53
54
55
56
57 @Override
58 public List<Component> getComponentsForLifecycle() {
59 List<Component> components = super.getComponentsForLifecycle();
60
61 components.add(richTable);
62
63 return components;
64 }
65
66
67
68
69
70
71 @BeanTagAttribute(name="richTable",type= BeanTagAttribute.AttributeType.SINGLEBEAN)
72 public RichTable getRichTable() {
73 return richTable;
74 }
75
76
77
78
79
80
81 public void setRichTable(RichTable richTable) {
82 this.richTable = richTable;
83 }
84
85
86
87
88 @BeanTagAttribute(name="ajaxSource")
89 public String getAjaxSource() {
90 if (richTable != null) {
91 return richTable.getAjaxSource();
92 }
93
94 return null;
95 }
96
97
98
99
100 public void setAjaxSource(String ajaxSource) {
101 if (richTable != null) {
102 richTable.setAjaxSource(ajaxSource);
103 }
104 }
105
106
107
108
109 @BeanTagAttribute(name="hiddenColumns",type= BeanTagAttribute.AttributeType.SETVALUE)
110 public Set<String> getHiddenColumns() {
111 if (richTable != null) {
112 return richTable.getHiddenColumns();
113 }
114
115 return null;
116 }
117
118
119
120
121 public void setHiddenColumns(Set<String> hiddenColumns) {
122 if (richTable != null) {
123 richTable.setHiddenColumns(hiddenColumns);
124 }
125 }
126
127
128
129
130 @BeanTagAttribute(name="sortableColumns",type= BeanTagAttribute.AttributeType.SETVALUE)
131 public Set<String> getSortableColumns() {
132 if (richTable != null) {
133 return richTable.getSortableColumns();
134 }
135
136 return null;
137 }
138
139
140
141
142 public void setSortableColumns(Set<String> sortableColumns) {
143 if (richTable != null) {
144 richTable.setSortableColumns(sortableColumns);
145 }
146 }
147
148 }