Coverage Report - org.kuali.student.lum.program.client.credential.view.CredentialLearningObjectivesViewConfiguration
 
Classes in this File Line Coverage Branch Coverage Complexity
CredentialLearningObjectivesViewConfiguration
0%
0/8
N/A
1
 
 1  
 package org.kuali.student.lum.program.client.credential.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.credential.CredentialEditableHeader;
 12  
 import org.kuali.student.lum.program.client.properties.ProgramProperties;
 13  
 
 14  
 /**
 15  
  * @author Igor
 16  
  */
 17  
 public class CredentialLearningObjectivesViewConfiguration extends AbstractSectionConfiguration {
 18  
 
 19  
     public static CredentialLearningObjectivesViewConfiguration create() {
 20  0
         return new CredentialLearningObjectivesViewConfiguration(new VerticalSectionView(ProgramSections.LEARNING_OBJECTIVES_VIEW, ProgramProperties.get().program_menu_sections_learningObjectives(), ProgramConstants.PROGRAM_MODEL_ID));
 21  
     }
 22  
 
 23  
     public static CredentialLearningObjectivesViewConfiguration createSpecial() {
 24  0
         String title = ProgramProperties.get().program_menu_sections_learningObjectives();
 25  0
         return new CredentialLearningObjectivesViewConfiguration(new VerticalSectionView(ProgramSections.LEARNING_OBJECTIVES_VIEW, title, ProgramConstants.PROGRAM_MODEL_ID, new CredentialEditableHeader(title, ProgramSections.LEARNING_OBJECTIVES_EDIT)));
 26  
     }
 27  
 
 28  0
     private CredentialLearningObjectivesViewConfiguration(SectionView sectionView) {
 29  0
         rootSection = sectionView;
 30  0
     }
 31  
     protected void buildLayout() {
 32  0
         configurer.addReadOnlyField(rootSection, ProgramConstants.LEARNING_OBJECTIVES, new MessageKeyInfo(""), new KSListPanel()).setWidgetBinding(new TreeStringBinding());
 33  0
     }
 34  
 }