Coverage Report - org.kuali.student.lum.program.client.major.view.SupportingDocsViewConfiguration
 
Classes in this File Line Coverage Branch Coverage Complexity
SupportingDocsViewConfiguration
0%
0/8
N/A
1
 
 1  
 package org.kuali.student.lum.program.client.major.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.documenttool.DocumentList;
 6  
 import org.kuali.student.common.ui.client.widgets.documenttool.DocumentListBinding;
 7  
 import org.kuali.student.common.ui.client.widgets.field.layout.element.MessageKeyInfo;
 8  
 import org.kuali.student.lum.common.client.configuration.AbstractSectionConfiguration;
 9  
 import org.kuali.student.lum.common.client.lu.LUUIConstants;
 10  
 import org.kuali.student.lum.program.client.ProgramConstants;
 11  
 import org.kuali.student.lum.program.client.ProgramSections;
 12  
 import org.kuali.student.lum.program.client.major.MajorEditableHeader;
 13  
 import org.kuali.student.lum.program.client.properties.ProgramProperties;
 14  
 import org.kuali.student.lum.program.client.widgets.EditableHeader;
 15  
 
 16  
 /**
 17  
  * @author Igor
 18  
  */
 19  
 public class SupportingDocsViewConfiguration extends AbstractSectionConfiguration {
 20  
 
 21  0
     private SupportingDocsViewConfiguration(SectionView sectionView) {
 22  0
         rootSection = sectionView;
 23  0
     }
 24  
 
 25  
     @Override
 26  
     protected void buildLayout() {
 27  0
        configurer.addReadOnlyField(rootSection, ProgramConstants.ID, new MessageKeyInfo(""), new DocumentList(LUUIConstants.REF_DOC_RELATION_PROPOSAL_TYPE,false, false)).setWidgetBinding(new DocumentListBinding("id"));
 28  0
     }
 29  
 
 30  
     public static SupportingDocsViewConfiguration createSpecial() {
 31  0
         String title = ProgramProperties.get().program_menu_sections_supportingDocuments();
 32  0
         return new SupportingDocsViewConfiguration(new VerticalSectionView(ProgramSections.SUPPORTING_DOCUMENTS_VIEW, title, ProgramConstants.PROGRAM_MODEL_ID, new MajorEditableHeader(title,ProgramSections.SUPPORTING_DOCUMENTS_EDIT)));
 33  
     }
 34  
 
 35  
     public static SupportingDocsViewConfiguration create(){
 36  0
         return new SupportingDocsViewConfiguration(new VerticalSectionView(ProgramSections.SUPPORTING_DOCUMENTS_VIEW, ProgramProperties.get().program_menu_sections_supportingDocuments(), ProgramConstants.PROGRAM_MODEL_ID));
 37  
     }
 38  
 }