Coverage Report - org.kuali.student.lum.program.client.variation.view.VariationViewAllConfiguration
 
Classes in this File Line Coverage Branch Coverage Complexity
VariationViewAllConfiguration
0%
0/15
0%
0/4
2
 
 1  
 package org.kuali.student.lum.program.client.variation.view;
 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.CatalogInformationViewConfiguration;
 13  
 import org.kuali.student.lum.program.client.major.view.LearningObjectivesViewConfiguration;
 14  
 import org.kuali.student.lum.program.client.major.view.ManagingBodiesViewConfiguration;
 15  
 import org.kuali.student.lum.program.client.major.view.ProgramRequirementsViewConfiguration;
 16  
 
 17  
 /**
 18  
  * @author Igor
 19  
  */
 20  
 public class VariationViewAllConfiguration extends AbstractControllerConfiguration {
 21  
 
 22  0
     public VariationViewAllConfiguration(Configurer configurer) {
 23  0
         this.setConfigurer(configurer);
 24  0
         rootSection = new VerticalSectionView(ProgramSections.VIEW_ALL, getLabel(ProgramMsgConstants.PROGRAM_MENU_SECTIONS_VIEWALL), ProgramConstants.PROGRAM_MODEL_ID, false);
 25  0
     }
 26  
 
 27  
     @Override
 28  
     protected void buildLayout() {
 29  0
         ConfigurationManager configurationManager = new ConfigurationManager();
 30  0
         configurationManager.registerConfiguration(VariationInformationViewConfiguration.create(configurer));
 31  0
         configurationManager.registerConfiguration(ManagingBodiesViewConfiguration.create(configurer));
 32  0
         configurationManager.registerConfiguration(CatalogInformationViewConfiguration.create(configurer));
 33  0
         configurationManager.registerConfiguration(new ProgramRequirementsViewConfiguration(configurer, false));
 34  0
         configurationManager.registerConfiguration(LearningObjectivesViewConfiguration.create(configurer));
 35  0
         for (Configuration configuration : configurationManager.getConfigurations()) {
 36  0
             if (configuration instanceof AbstractControllerConfiguration) {
 37  0
                 ((AbstractControllerConfiguration) configuration).setController(controller);
 38  
             }
 39  0
             rootSection.addSection((Section) configuration.getView());
 40  
         }
 41  0
     }
 42  
 }