1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.kns.web.ui;
17
18 import java.util.ArrayList;
19 import java.util.List;
20
21
22
23
24 @Deprecated
25 public class Row implements java.io.Serializable {
26
27 private static final long serialVersionUID = 5920833652172097098L;
28 private List<Field> fields;
29 private boolean hidden;
30
31 public Row() {
32 fields = new ArrayList<Field>();
33 hidden = false;
34 }
35
36 public Row(List<Field> fields) {
37 this.fields = fields;
38 hidden = false;
39 }
40
41 public Row(Field field) {
42 this.fields = new ArrayList<Field>();
43 fields.add(field);
44 hidden = false;
45 }
46
47
48
49
50 public List<Field> getFields() {
51 return fields;
52 }
53
54
55
56
57 public void setFields(List<Field> fields) {
58 this.fields = fields;
59 }
60
61
62
63
64 public boolean isHidden() {
65 return hidden;
66 }
67
68
69
70
71 public void setHidden(boolean hidden) {
72 this.hidden = hidden;
73 }
74
75 public Field getField(int index) {
76 while (fields.size() <= index) {
77 Field field = new Field();
78 fields.add(field);
79 }
80 return (Field) fields.get(index);
81 }
82
83 public String toString(){
84 StringBuffer sRet = new StringBuffer();
85 sRet.append("[");
86
87 if(fields != null){
88 for(Field f: fields){
89 sRet.append(f.getPropertyName() + ", ");
90 }
91
92 sRet.delete(sRet.length()-2, sRet.length());
93 }
94 sRet.append("]");
95
96 return sRet.toString();
97
98 }
99 }