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", 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
58
59 @BeanTagAttribute
60 public RichTable getRichTable() {
61 return richTable;
62 }
63
64
65
66
67
68
69 public void setRichTable(RichTable richTable) {
70 this.richTable = richTable;
71 }
72
73
74
75
76 @BeanTagAttribute
77 public String getAjaxSource() {
78 if (richTable != null) {
79 return richTable.getAjaxSource();
80 }
81
82 return null;
83 }
84
85
86
87
88 public void setAjaxSource(String ajaxSource) {
89 if (richTable != null) {
90 richTable.setAjaxSource(ajaxSource);
91 }
92 }
93
94
95
96
97 @BeanTagAttribute(type = BeanTagAttribute.AttributeType.SETVALUE)
98 public Set<String> getHiddenColumns() {
99 if (richTable != null) {
100 return richTable.getHiddenColumns();
101 }
102
103 return null;
104 }
105
106
107
108
109 public void setHiddenColumns(Set<String> hiddenColumns) {
110 if (richTable != null) {
111 richTable.setHiddenColumns(hiddenColumns);
112 }
113 }
114
115
116
117
118 @BeanTagAttribute(type = BeanTagAttribute.AttributeType.SETVALUE)
119 public Set<String> getSortableColumns() {
120 if (richTable != null) {
121 return richTable.getSortableColumns();
122 }
123
124 return null;
125 }
126
127
128
129
130 public void setSortableColumns(Set<String> sortableColumns) {
131 if (richTable != null) {
132 richTable.setSortableColumns(sortableColumns);
133 }
134 }
135 }