1 |
|
package org.kuali.student.lum.program.client.variation.edit; |
2 |
|
|
3 |
|
import org.kuali.student.common.ui.client.configurable.mvc.sections.Section; |
4 |
|
import org.kuali.student.common.ui.client.configurable.mvc.views.VerticalSectionView; |
5 |
|
import org.kuali.student.lum.common.client.configuration.AbstractControllerConfiguration; |
6 |
|
import org.kuali.student.lum.common.client.configuration.Configuration; |
7 |
|
import org.kuali.student.lum.common.client.configuration.ConfigurationManager; |
8 |
|
import org.kuali.student.lum.program.client.ProgramConstants; |
9 |
|
import org.kuali.student.lum.program.client.ProgramSections; |
10 |
|
import org.kuali.student.lum.program.client.major.view.*; |
11 |
|
import org.kuali.student.lum.program.client.properties.ProgramProperties; |
12 |
|
import org.kuali.student.lum.program.client.variation.view.VariationInformationViewConfiguration; |
13 |
|
|
14 |
|
|
15 |
|
@author |
16 |
|
|
|
|
| 0% |
Uncovered Elements: 16 (16) |
Complexity: 3 |
Complexity Density: 0.25 |
|
17 |
|
public class VariationSummaryConfiguration extends AbstractControllerConfiguration { |
18 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
19 |
0
|
public VariationSummaryConfiguration() {... |
20 |
0
|
rootSection = new VerticalSectionView(ProgramSections.SUMMARY, ProgramProperties.get().variation_summary(), ProgramConstants.PROGRAM_MODEL_ID, true); |
21 |
|
} |
22 |
|
|
|
|
| 0% |
Uncovered Elements: 13 (13) |
Complexity: 2 |
Complexity Density: 0.18 |
|
23 |
0
|
@Override... |
24 |
|
protected void buildLayout() { |
25 |
0
|
ConfigurationManager configurationManager = new ConfigurationManager(configurer); |
26 |
0
|
configurationManager.registerConfiguration(VariationInformationViewConfiguration.createSpecial()); |
27 |
0
|
configurationManager.registerConfiguration(ManagingBodiesViewConfiguration.createSpecial()); |
28 |
0
|
configurationManager.registerConfiguration(CatalogInformationViewConfiguration.createSpecial()); |
29 |
0
|
configurationManager.registerConfiguration(new ProgramRequirementsViewConfiguration(true)); |
30 |
0
|
configurationManager.registerConfiguration(LearningObjectivesViewConfiguration.createSpecial()); |
31 |
0
|
configurationManager.registerConfiguration(SupportingDocsViewConfiguration.createSpecial()); |
32 |
0
|
for (Configuration configuration : configurationManager.getConfigurations()) { |
33 |
0
|
if (configuration instanceof AbstractControllerConfiguration) { |
34 |
0
|
((AbstractControllerConfiguration) configuration).setController(controller); |
35 |
|
} |
36 |
0
|
rootSection.addSection((Section) configuration.getView()); |
37 |
|
} |
38 |
|
} |
39 |
|
} |
40 |
|
|