Clover Coverage Report - Kuali Student 1.2-M6-SNAPSHOT (Aggregated)
Coverage timestamp: Mon Sep 12 2011 05:03:53 EDT
../../../../../../../../../img/srcFileCovDistChart0.png 42% of files have more coverage
34   134   27   1.62
12   96   0.79   21
21     1.29  
1    
 
  Column       Line # 11 34 0% 27 67 0% 0.0
 
No Tests
 
1    package org.kuali.student.common.ui.client.widgets.table.scroll;
2   
3    import com.google.gwt.user.client.ui.Label;
4    import com.google.gwt.user.client.ui.Widget;
5   
6    /**
7    * Column definition for table column.
8    *
9    *
10    * */
 
11    public class Column {
12    /** Ascending order. */
13    public final static int Ascending = 1;
14    /** Descending order */
15    public final static int Descending = 2;
16    /** Not sorted */
17    public final static int NotOrdered = 3;
18   
19    private Widget columnTitleWidget;
20    private String id;
21    private String name = "";
22    private String width;
23    private int sortDirection = NotOrdered;
24    private boolean isVisible = true;
25    private boolean isSortable;
26   
27    private RowComparator ascendingRowComparator;
28    private RowComparator descendingRowComparator;
29   
30    /**
31    * Get the row comparator.
32    * */
 
33  0 toggle public RowComparator getComparator() {
34  0 if (this.sortDirection == Ascending) {
35  0 return ascendingRowComparator;
36  0 } else if (this.sortDirection == Descending) {
37  0 return descendingRowComparator;
38    } else {
39  0 return null;
40    }
41    }
42    /** Get comparator for ascending sort*/
 
43  0 toggle public RowComparator getAscendingRowComparator() {
44  0 return ascendingRowComparator;
45    }
46   
 
47  0 toggle public void setAscendingRowComparator(RowComparator ascendingRowComparator) {
48  0 this.ascendingRowComparator = ascendingRowComparator;
49  0 this.isSortable = true;
50    }
51   
 
52  0 toggle public RowComparator getDescendingRowComparator() {
53  0 return descendingRowComparator;
54    }
55   
 
56  0 toggle public void setDescendingRowComparator(RowComparator descedingRowcomparator) {
57  0 this.descendingRowComparator = descedingRowcomparator;
58  0 this.isSortable = true;
59    }
60   
 
61  0 toggle public boolean isVisible() {
62  0 return isVisible;
63    }
64   
 
65  0 toggle public void setVisible(boolean isVisible) {
66  0 this.isVisible = isVisible;
67    }
68   
 
69  0 toggle public Widget getColumnTitleWidget() {
70  0 if (columnTitleWidget == null) {
71  0 return new Label(name);
72    }
73   
74  0 return columnTitleWidget;
75    }
76   
 
77  0 toggle public void setColumnTitleWidget(Widget c) {
78  0 columnTitleWidget = c;
79    }
80   
 
81  0 toggle public String getId() {
82  0 return id;
83    }
84   
 
85  0 toggle public void setId(String id) {
86  0 this.id = id;
87    }
88   
 
89  0 toggle public boolean isSortable() {
90  0 return isSortable;
91    }
92   
 
93  0 toggle public void setSortable(boolean isSortable) {
94  0 this.isSortable = isSortable;
95    }
96   
 
97  0 toggle public String getName() {
98  0 return name;
99    }
100   
 
101  0 toggle public void setName(String name) {
102  0 this.name = name;
103    }
104   
 
105  0 toggle public String getWidth() {
106  0 return width;
107    }
108   
 
109  0 toggle public void setWidth(String width) {
110  0 this.width = width;
111    }
112   
 
113  0 toggle public void changeSortDirection() {
114  0 if (this.sortDirection == NotOrdered) {
115  0 this.sortDirection = Ascending;
116  0 } else if (this.sortDirection == Ascending) {
117  0 this.sortDirection = Descending;
118  0 } else if (this.sortDirection == Descending) {
119  0 this.sortDirection = Ascending;
120    }
121    }
122   
 
123  0 toggle public void setSortDirection(int sortDirection) {
124  0 this.sortDirection = sortDirection;
125    }
126   
 
127  0 toggle public int getSortDirection() {
128  0 return sortDirection;
129    }
130   
 
131  0 toggle public void setSortedType(int direction) {
132  0 sortDirection = direction;
133    }
134    }