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
16
17 public class VariationSummaryConfiguration extends AbstractControllerConfiguration {
18
19 public VariationSummaryConfiguration() {
20 rootSection = new VerticalSectionView(ProgramSections.SUMMARY, ProgramProperties.get().variation_summary(), ProgramConstants.PROGRAM_MODEL_ID, true);
21 }
22
23 @Override
24 protected void buildLayout() {
25 ConfigurationManager configurationManager = new ConfigurationManager(configurer);
26 configurationManager.registerConfiguration(VariationInformationViewConfiguration.createSpecial());
27 configurationManager.registerConfiguration(ManagingBodiesViewConfiguration.createSpecial());
28 configurationManager.registerConfiguration(CatalogInformationViewConfiguration.createSpecial());
29 configurationManager.registerConfiguration(new ProgramRequirementsViewConfiguration(true));
30 configurationManager.registerConfiguration(LearningObjectivesViewConfiguration.createSpecial());
31 configurationManager.registerConfiguration(SupportingDocsViewConfiguration.createSpecial());
32 for (Configuration configuration : configurationManager.getConfigurations()) {
33 if (configuration instanceof AbstractControllerConfiguration) {
34 ((AbstractControllerConfiguration) configuration).setController(controller);
35 }
36 rootSection.addSection((Section) configuration.getView());
37 }
38 }
39 }
40