Coverage Report - org.kuali.student.lum.program.client.major.edit.MajorSummaryConfiguration
 
Classes in this File Line Coverage Branch Coverage Complexity
MajorSummaryConfiguration
0%
0/19
0%
0/4
2
 
 1  
 package org.kuali.student.lum.program.client.major.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.MajorManager;
 11  
 import org.kuali.student.lum.program.client.major.view.*;
 12  
 import org.kuali.student.lum.program.client.properties.ProgramProperties;
 13  
 import org.kuali.student.lum.program.client.widgets.SummaryActionPanel;
 14  
 
 15  
 /**
 16  
  * @author Igor
 17  
  */
 18  
 public class MajorSummaryConfiguration extends AbstractControllerConfiguration {
 19  
 
 20  0
     public MajorSummaryConfiguration() {
 21  0
         rootSection = new VerticalSectionView(ProgramSections.SUMMARY, ProgramProperties.get().program_menu_sections_summary(), ProgramConstants.PROGRAM_MODEL_ID, true);
 22  0
     }
 23  
 
 24  
     @Override
 25  
     protected void buildLayout() {
 26  0
         ConfigurationManager configurationManager = new ConfigurationManager(configurer);
 27  0
             MajorInformationViewConfiguration majorInfoViewConfig = MajorInformationViewConfiguration.createSpecial();
 28  0
         configurationManager.registerConfiguration(majorInfoViewConfig);
 29  0
         configurationManager.registerConfiguration(ManagingBodiesViewConfiguration.createSpecial());
 30  0
         configurationManager.registerConfiguration(SpecializationsViewConfiguration.createSpecial());
 31  0
         configurationManager.registerConfiguration(CatalogInformationViewConfiguration.createSpecial());
 32  0
         configurationManager.registerConfiguration(new ProgramRequirementsViewConfiguration(true));
 33  0
         configurationManager.registerConfiguration(LearningObjectivesViewConfiguration.createSpecial());
 34  0
         configurationManager.registerConfiguration(SupportingDocsViewConfiguration.createSpecial());
 35  
 
 36  0
         rootSection.addWidget(new SummaryActionPanel(majorInfoViewConfig.createActivateProgramSection(), MajorManager.getEventBus()));        
 37  0
         for (Configuration configuration : configurationManager.getConfigurations()) {
 38  0
             if (configuration instanceof AbstractControllerConfiguration) {
 39  0
                 ((AbstractControllerConfiguration) configuration).setController(controller);
 40  
             }
 41  0
             rootSection.addSection((Section) configuration.getView());
 42  
         }        
 43  0
         rootSection.addWidget(new SummaryActionPanel(majorInfoViewConfig.createActivateProgramSection(), MajorManager.getEventBus()));
 44  0
     }
 45  
 }