Coverage Report - org.kuali.student.lum.program.client.core.view.CoreManagingBodiesViewConfiguration
 
Classes in this File Line Coverage Branch Coverage Complexity
CoreManagingBodiesViewConfiguration
0%
0/15
N/A
1
 
 1  
 package org.kuali.student.lum.program.client.core.view;
 2  
 
 3  
 import org.kuali.student.common.ui.client.configurable.mvc.sections.VerticalSection;
 4  
 import org.kuali.student.common.ui.client.configurable.mvc.views.SectionView;
 5  
 import org.kuali.student.common.ui.client.configurable.mvc.views.VerticalSectionView;
 6  
 import org.kuali.student.common.ui.client.widgets.field.layout.element.MessageKeyInfo;
 7  
 import org.kuali.student.lum.common.client.configuration.AbstractSectionConfiguration;
 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.core.CoreEditableHeader;
 11  
 import org.kuali.student.lum.program.client.properties.ProgramProperties;
 12  
 
 13  
 /**
 14  
  * @author Igor
 15  
  */
 16  
 public class CoreManagingBodiesViewConfiguration extends AbstractSectionConfiguration {
 17  
  public static CoreManagingBodiesViewConfiguration create() {
 18  0
         return new CoreManagingBodiesViewConfiguration(new VerticalSectionView(ProgramSections.MANAGE_BODIES_VIEW, ProgramProperties.get().program_menu_sections_managingBodies(), ProgramConstants.PROGRAM_MODEL_ID));
 19  
     }
 20  
 
 21  
     public static CoreManagingBodiesViewConfiguration createSpecial() {
 22  0
         String title = ProgramProperties.get().program_menu_sections_managingBodies();
 23  0
         return new CoreManagingBodiesViewConfiguration(new VerticalSectionView(ProgramSections.MANAGE_BODIES_VIEW, title, ProgramConstants.PROGRAM_MODEL_ID, new CoreEditableHeader(title, ProgramSections.MANAGE_BODIES_EDIT)));
 24  
     }
 25  
 
 26  0
     private CoreManagingBodiesViewConfiguration(SectionView sectionView) {
 27  0
         rootSection = sectionView;
 28  0
     }
 29  
 
 30  
     @Override
 31  
     protected void buildLayout() {
 32  0
         VerticalSection section = createMainSection();
 33  0
         rootSection.addSection(section);
 34  0
     }
 35  
 
 36  
     private VerticalSection createMainSection() {
 37  0
         VerticalSection section = new VerticalSection();
 38  0
         configurer.addReadOnlyField(section, ProgramConstants.CURRICULUM_OVERSIGHT_DIVISION, new MessageKeyInfo(ProgramProperties.get().managingBodies_curriculumOversightDivision()));
 39  0
         configurer.addReadOnlyField(section, ProgramConstants.CURRICULUM_OVERSIGHT_UNIT, new MessageKeyInfo(ProgramProperties.get().managingBodies_curriculumOversightUnit()));
 40  0
         configurer.addReadOnlyField(section, ProgramConstants.STUDENT_OVERSIGHT_DIVISION, new MessageKeyInfo(ProgramProperties.get().managingBodies_studentOversightDivision()));
 41  0
         configurer.addReadOnlyField(section, ProgramConstants.STUDENT_OVERSIGHT_UNIT, new MessageKeyInfo(ProgramProperties.get().managingBodies_studentOversightUnit()));
 42  0
         return section;
 43  
     }
 44  
 }