Clover Coverage Report - Kuali Student 1.2-M5-SNAPSHOT (Aggregated)
Coverage timestamp: Mon Aug 29 2011 05:04:27 EDT
../../../../../../../../../img/srcFileCovDistChart0.png 42% of files have more coverage
13   49   6   2.17
0   35   0.46   6
6     1  
1    
 
  SummaryTableFieldRow       Line # 6 13 0% 6 19 0% 0.0
 
No Tests
 
1    package org.kuali.student.common.ui.client.widgets.table.summary;
2   
3    import org.kuali.student.common.assembly.data.MetadataInterrogator;
4    import org.kuali.student.common.ui.client.configurable.mvc.FieldDescriptor;
5   
 
6    public class SummaryTableFieldRow extends SummaryTableRow{
7    private FieldDescriptor fieldDescriptor1;
8    private FieldDescriptor fieldDescriptor2;
9    private boolean temporary = false;
10   
 
11  0 toggle public SummaryTableFieldRow(){
12  0 this.setContentCellCount(2);
13    }
14   
 
15  0 toggle public SummaryTableFieldRow(FieldDescriptor fieldDescriptor1,
16    FieldDescriptor fieldDescriptor2){
17  0 this.fieldDescriptor1 = fieldDescriptor1;
18  0 this.setKey(fieldDescriptor1.getFieldKey());
19  0 this.setCell1(fieldDescriptor1.getFieldWidget());
20  0 this.setTitle(fieldDescriptor1.getFieldLabel());
21  0 this.setRequired(MetadataInterrogator.isRequired(fieldDescriptor1.getMetadata()) ||
22    MetadataInterrogator.isRequiredForNextState(fieldDescriptor1.getMetadata()));
23   
24  0 this.fieldDescriptor2 = fieldDescriptor2;
25  0 this.setCell2(fieldDescriptor2.getFieldWidget());
26  0 this.setContentCellCount(2);
27    }
28   
 
29  0 toggle public FieldDescriptor getFieldDescriptor1(){
30  0 return fieldDescriptor1;
31    }
 
32  0 toggle public FieldDescriptor getFieldDescriptor2(){
33  0 return fieldDescriptor2;
34    }
35   
36    /**
37    * This flag means the row should be removed before data is re-generated for the
38    * rows
39    * @param multiplicityRow
40    */
 
41  0 toggle protected void setTemporaryRowFlag(boolean multiplicityRow) {
42  0 this.temporary = multiplicityRow;
43    }
44   
 
45  0 toggle protected boolean isTemporaryRow() {
46  0 return temporary;
47    }
48   
49    }