| 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 |
|
|
|
|
|
| 0% |
Uncovered Elements: 19 (19) |
Complexity: 6 |
Complexity Density: 0.46 |
|
| 6 |
|
public class SummaryTableFieldRow extends SummaryTableRow{ |
| 7 |
|
private FieldDescriptor fieldDescriptor1; |
| 8 |
|
private FieldDescriptor fieldDescriptor2; |
| 9 |
|
private boolean temporary = false; |
| 10 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 11 |
0
|
public SummaryTableFieldRow(){... |
| 12 |
0
|
this.setContentCellCount(2); |
| 13 |
|
} |
| 14 |
|
|
|
|
|
| 0% |
Uncovered Elements: 8 (8) |
Complexity: 1 |
Complexity Density: 0.12 |
|
| 15 |
0
|
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 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 29 |
0
|
public FieldDescriptor getFieldDescriptor1(){... |
| 30 |
0
|
return fieldDescriptor1; |
| 31 |
|
} |
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 32 |
0
|
public FieldDescriptor getFieldDescriptor2(){... |
| 33 |
0
|
return fieldDescriptor2; |
| 34 |
|
} |
| 35 |
|
|
| 36 |
|
|
| 37 |
|
|
| 38 |
|
|
| 39 |
|
@param |
| 40 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 41 |
0
|
protected void setTemporaryRowFlag(boolean multiplicityRow) {... |
| 42 |
0
|
this.temporary = multiplicityRow; |
| 43 |
|
} |
| 44 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 45 |
0
|
protected boolean isTemporaryRow() {... |
| 46 |
0
|
return temporary; |
| 47 |
|
} |
| 48 |
|
|
| 49 |
|
} |