Coverage Report - org.kuali.student.lum.program.client.core.edit.CoreSummaryConfiguration
 
Classes in this File Line Coverage Branch Coverage Complexity
CoreSummaryConfiguration
0%
0/19
0%
0/4
2
 
 1  
 package org.kuali.student.lum.program.client.core.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.core.CoreManager;
 13  
 import org.kuali.student.lum.program.client.core.view.*;
 14  
 import org.kuali.student.lum.program.client.widgets.SummaryActionPanel;
 15  
 
 16  
 /**
 17  
  * @author Igor
 18  
  */
 19  
 public class CoreSummaryConfiguration extends AbstractControllerConfiguration {
 20  
 
 21  0
     public CoreSummaryConfiguration(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
             CoreInformationViewConfiguration coreInfoViewConfig = CoreInformationViewConfiguration.createSpecial(configurer);
 30  0
         configurationManager.registerConfiguration(coreInfoViewConfig);
 31  0
         configurationManager.registerConfiguration(CoreManagingBodiesViewConfiguration.createSpecial(configurer));
 32  0
         configurationManager.registerConfiguration(CoreCatalogInformationViewConfiguration.createSpecial(configurer));
 33  0
         configurationManager.registerConfiguration(new CoreRequirementsViewConfiguration(configurer, true));
 34  0
         configurationManager.registerConfiguration(CoreLearningObjectivesViewConfiguration.createSpecial(configurer));
 35  0
         configurationManager.registerConfiguration(CoreDocsViewConfiguration.createSpecial(configurer));
 36  
 
 37  0
         rootSection.addWidget(new SummaryActionPanel(coreInfoViewConfig.createActivateProgramSection(), CoreManager.getEventBus()));        
 38  0
         for (Configuration configuration : configurationManager.getConfigurations()) {
 39  0
             if (configuration instanceof AbstractControllerConfiguration) {
 40  0
                 ((AbstractControllerConfiguration) configuration).setController(controller);
 41  
             }
 42  0
             rootSection.addSection((Section) configuration.getView());
 43  
         }
 44  0
         rootSection.addWidget(new SummaryActionPanel(coreInfoViewConfig.createActivateProgramSection(), CoreManager.getEventBus()));        
 45  0
     }
 46  
 }