Coverage Report - org.kuali.student.lum.program.client.major.view.ProgramRequirementsViewConfiguration
 
Classes in this File Line Coverage Branch Coverage Complexity
ProgramRequirementsViewConfiguration
0%
0/13
0%
0/6
1.75
 
 1  
 package org.kuali.student.lum.program.client.major.view;
 2  
 
 3  
 import org.kuali.student.common.ui.client.mvc.Controller;
 4  
 import org.kuali.student.lum.common.client.configuration.AbstractControllerConfiguration;
 5  
 import org.kuali.student.lum.program.client.ProgramSections;
 6  
 import org.kuali.student.lum.program.client.major.MajorEditableHeader;
 7  
 import org.kuali.student.lum.program.client.major.MajorManager;
 8  
 import org.kuali.student.lum.program.client.properties.ProgramProperties;
 9  
 import org.kuali.student.lum.program.client.requirements.ProgramRequirementsViewController;
 10  
 
 11  
 public class ProgramRequirementsViewConfiguration extends AbstractControllerConfiguration {
 12  
 
 13  
     private ProgramRequirementsViewController progReqcontroller;
 14  
 
 15  0
     public ProgramRequirementsViewConfiguration(boolean special) {
 16  0
         progReqcontroller = new ProgramRequirementsViewController(controller, MajorManager.getEventBus(), 
 17  
                                     ProgramProperties.get().program_menu_sections_requirements(), ProgramSections.PROGRAM_REQUIREMENTS_VIEW, true,
 18  
                                     (special ? new MajorEditableHeader(ProgramProperties.get().program_menu_sections_requirements(), ProgramSections.PROGRAM_REQUIREMENTS_EDIT) : null));
 19  0
         rootSection = progReqcontroller.getProgramRequirementsView();
 20  0
     }
 21  
 
 22  0
       public ProgramRequirementsViewConfiguration(boolean special, boolean reloadRequirements) {
 23  0
         progReqcontroller = new ProgramRequirementsViewController(controller, MajorManager.getEventBus(),
 24  
                                     ProgramProperties.get().program_menu_sections_requirements(), ProgramSections.PROGRAM_REQUIREMENTS_VIEW, true,
 25  
                                     (special ? new MajorEditableHeader(ProgramProperties.get().program_menu_sections_requirements(), ProgramSections.PROGRAM_REQUIREMENTS_EDIT) : null), reloadRequirements);
 26  0
         rootSection = progReqcontroller.getProgramRequirementsView();
 27  0
     }
 28  
 
 29  
     @Override
 30  
     protected void buildLayout() {
 31  0
     }
 32  
 
 33  
     @Override
 34  
     public void setController(Controller controller) {
 35  0
         this.controller = controller;
 36  0
         if (progReqcontroller != null) {
 37  0
             progReqcontroller.setParentController(controller);
 38  
         }
 39  0
     }
 40  
 }