Coverage Report - org.kuali.student.lum.program.client.core.view.CoreLearningObjectivesViewConfiguration
 
Classes in this File Line Coverage Branch Coverage Complexity
CoreLearningObjectivesViewConfiguration
0%
0/8
N/A
1
 
 1  
 package org.kuali.student.lum.program.client.core.view;
 2  
 
 3  
 import org.kuali.student.common.ui.client.configurable.mvc.views.SectionView;
 4  
 import org.kuali.student.common.ui.client.configurable.mvc.views.VerticalSectionView;
 5  
 import org.kuali.student.common.ui.client.widgets.field.layout.element.MessageKeyInfo;
 6  
 import org.kuali.student.common.ui.client.widgets.menus.KSListPanel;
 7  
 import org.kuali.student.lum.common.client.configuration.AbstractSectionConfiguration;
 8  
 import org.kuali.student.lum.common.client.lo.TreeStringBinding;
 9  
 import org.kuali.student.lum.program.client.ProgramConstants;
 10  
 import org.kuali.student.lum.program.client.ProgramSections;
 11  
 import org.kuali.student.lum.program.client.core.CoreEditableHeader;
 12  
 import org.kuali.student.lum.program.client.properties.ProgramProperties;
 13  
 import org.kuali.student.lum.program.client.widgets.EditableHeader;
 14  
 
 15  
 /**
 16  
  * @author Igor
 17  
  */
 18  
 public class CoreLearningObjectivesViewConfiguration extends AbstractSectionConfiguration {
 19  
 
 20  
      public static CoreLearningObjectivesViewConfiguration create() {
 21  0
         return new CoreLearningObjectivesViewConfiguration(new VerticalSectionView(ProgramSections.LEARNING_OBJECTIVES_VIEW, ProgramProperties.get().program_menu_sections_learningObjectives(), ProgramConstants.PROGRAM_MODEL_ID));
 22  
     }
 23  
 
 24  
     public static CoreLearningObjectivesViewConfiguration createSpecial() {
 25  0
         String title = ProgramProperties.get().program_menu_sections_learningObjectives();
 26  0
         return new CoreLearningObjectivesViewConfiguration(new VerticalSectionView(ProgramSections.LEARNING_OBJECTIVES_VIEW, title, ProgramConstants.PROGRAM_MODEL_ID, new CoreEditableHeader(title, ProgramSections.LEARNING_OBJECTIVES_EDIT)));
 27  
     }
 28  
 
 29  0
     private CoreLearningObjectivesViewConfiguration(SectionView sectionView) {
 30  0
         rootSection = sectionView;
 31  0
     }
 32  
     protected void buildLayout() {
 33  0
         configurer.addReadOnlyField(rootSection, ProgramConstants.LEARNING_OBJECTIVES, new MessageKeyInfo(""), new KSListPanel()).setWidgetBinding(new TreeStringBinding());
 34  0
     }
 35  
 }