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