Coverage Report - org.kuali.student.lum.program.client.core.edit.CoreDocsEditConfiguration
 
Classes in this File Line Coverage Branch Coverage Complexity
CoreDocsEditConfiguration
0%
0/9
N/A
1
 
 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.views.VerticalSectionView;
 5  
 import org.kuali.student.common.ui.client.mvc.DataModelDefinition;
 6  
 import org.kuali.student.lum.common.client.configuration.AbstractSectionConfiguration;
 7  
 import org.kuali.student.lum.program.client.AbstractProgramConfigurer;
 8  
 import org.kuali.student.lum.program.client.ProgramConstants;
 9  
 import org.kuali.student.lum.program.client.ProgramMsgConstants;
 10  
 import org.kuali.student.lum.program.client.ProgramSections;
 11  
 import org.kuali.student.lum.program.client.widgets.ProgramDocumentTool;
 12  
 
 13  
 /**
 14  
  * @author Igor
 15  
  */
 16  
 public class CoreDocsEditConfiguration extends AbstractSectionConfiguration {
 17  
 
 18  0
     public CoreDocsEditConfiguration(Configurer configurer) {
 19  0
         this.setConfigurer(configurer);
 20  0
         rootSection = new VerticalSectionView(ProgramSections.SUPPORTING_DOCUMENTS_EDIT, getLabel(ProgramMsgConstants.PROGRAM_MENU_SECTIONS_SUPPORTINGDOCUMENTS), 
 21  
                 ProgramConstants.PROGRAM_MODEL_ID);
 22  0
     }
 23  
 
 24  
     @Override
 25  
     protected void buildLayout() {
 26  0
         ProgramDocumentTool documentTool = new ProgramDocumentTool(ProgramSections.SUPPORTING_DOCUMENTS_EDIT, "Documents");
 27  0
         documentTool.setModelDefinition((DataModelDefinition) configurer.getModelDefinition());
 28  0
         documentTool.setController(((AbstractProgramConfigurer) configurer).getProgramController());
 29  0
         rootSection.addView(documentTool);
 30  0
     }
 31  
 }