View Javadoc

1   package org.kuali.student.common.ui.client.widgets.table.summary;
2   
3   import com.google.gwt.user.client.ui.Widget;
4   
5   public class SummaryTableRow {
6       private boolean isRequired = false;
7       private String title ="";
8       private int contentCellCount = 1;
9       private Widget cell1;
10      private Widget cell2;
11      private String key;
12      private String titleStyle;
13      private String contentStyle;
14      private boolean shown = true;
15      
16      public String getKey() {
17          return key;
18      }
19      public void setKey(String key) {
20          this.key = key;
21      }
22      public boolean isRequired() {
23          return isRequired;
24      }
25      public void setRequired(boolean isRequired) {
26          this.isRequired = isRequired;
27      }
28      public String getTitle() {
29          return title;
30      }
31      public void setTitle(String title) {
32          this.title = title;
33      }
34      public int getContentCellCount() {
35          return contentCellCount;
36      }
37      public void setContentCellCount(int contentCellCount) {
38          this.contentCellCount = contentCellCount;
39      }
40      public Widget getCell1() {
41          return cell1;
42      }
43      public void setCell1(Widget cell1) {
44          this.cell1 = cell1;
45      }
46      public Widget getCell2() {
47          return cell2;
48      }
49      public void setCell2(Widget cell2) {
50          this.cell2 = cell2;
51      }
52      
53      public void addTitleCellStyleName(String style){
54      	this.titleStyle = style;
55      }
56      
57      public String getTitleCellStyleName(){
58      	return titleStyle;
59      }
60      
61      public void addContentCellStyleName(String style){
62      	this.contentStyle = style;
63      }
64      
65      public String getContentCellStyleName(){
66      	return contentStyle;
67      }
68      
69      /**
70       * Rows that are set to not show will be set to display:none during the layout phase.
71       * These flags should be reset and set again if needed during each data setup phase.
72       * @param show
73       */
74      public void setShown(boolean show){
75      	this.shown = show;
76      }
77      
78      protected boolean isShown(){
79      	return shown;
80      }
81  }