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