Coverage Report - org.kuali.student.common.ui.client.widgets.table.summary.SummaryTableFieldRow
 
Classes in this File Line Coverage Branch Coverage Complexity
SummaryTableFieldRow
0%
0/19
0%
0/4
1.167
 
 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  0
     private boolean temporary = false;
 10  
     
 11  0
     public SummaryTableFieldRow(){
 12  0
         this.setContentCellCount(2);
 13  0
     }
 14  
     
 15  
     public SummaryTableFieldRow(FieldDescriptor fieldDescriptor1,
 16  0
             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  0
     }
 28  
 
 29  
     public FieldDescriptor getFieldDescriptor1(){
 30  0
         return fieldDescriptor1;
 31  
     }
 32  
     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  
     protected void setTemporaryRowFlag(boolean multiplicityRow) {
 42  0
                 this.temporary = multiplicityRow;
 43  0
         }
 44  
     
 45  
     protected boolean isTemporaryRow() {
 46  0
                 return temporary;
 47  
         }
 48  
 
 49  
 }