Coverage Report - org.kuali.student.lum.program.client.credential.edit.CredentialSummaryConfiguration
 
Classes in this File Line Coverage Branch Coverage Complexity
CredentialSummaryConfiguration
0%
0/18
0%
0/4
2
 
 1  
 package org.kuali.student.lum.program.client.credential.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.credential.CredentialManager;
 11  
 import org.kuali.student.lum.program.client.credential.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 CredentialSummaryConfiguration extends AbstractControllerConfiguration {
 19  
 
 20  0
     public CredentialSummaryConfiguration() {
 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
             CredentialInformationViewConfiguration credentialInfoViewConfig = CredentialInformationViewConfiguration.createSpecial();
 28  0
         configurationManager.registerConfiguration(credentialInfoViewConfig);
 29  0
         configurationManager.registerConfiguration(CredentialManagingBodiesViewConfiguration.createSpecial());
 30  0
         configurationManager.registerConfiguration(CredentialCatalogDetailsViewConfiguration.createSpecial());
 31  0
         configurationManager.registerConfiguration(new CredentialRequirementsViewConfiguration(true));
 32  0
         configurationManager.registerConfiguration(CredentialLearningObjectivesViewConfiguration.createSpecial());
 33  0
         configurationManager.registerConfiguration(CredentialDocsViewConfiguration.createSpecial());
 34  
         
 35  0
         rootSection.addWidget(new SummaryActionPanel(credentialInfoViewConfig.createActivateProgramSection(), CredentialManager.getEventBus()));
 36  0
         for (Configuration configuration : configurationManager.getConfigurations()) {
 37  0
             if (configuration instanceof AbstractControllerConfiguration) {
 38  0
                 ((AbstractControllerConfiguration) configuration).setController(controller);
 39  
             }
 40  0
             rootSection.addSection((Section) configuration.getView());
 41  
         }
 42  0
         rootSection.addWidget(new SummaryActionPanel(credentialInfoViewConfig.createActivateProgramSection(), CredentialManager.getEventBus()));
 43  0
     }
 44  
 }