Coverage Report - org.kuali.student.lum.program.client.major.proposal.MajorProposalKeyProgramInfoEditConfiguration
 
Classes in this File Line Coverage Branch Coverage Complexity
MajorProposalKeyProgramInfoEditConfiguration
0%
0/18
N/A
1
 
 1  
 package org.kuali.student.lum.program.client.major.proposal;
 2  
 
 3  
 import org.kuali.student.common.ui.client.configurable.mvc.SectionTitle;
 4  
 import org.kuali.student.common.ui.client.configurable.mvc.sections.HorizontalSection;
 5  
 import org.kuali.student.common.ui.client.configurable.mvc.sections.VerticalSection;
 6  
 import org.kuali.student.common.ui.client.widgets.field.layout.element.MessageKeyInfo;
 7  
 import org.kuali.student.lum.program.client.ProgramConstants;
 8  
 import org.kuali.student.lum.program.client.major.edit.MajorKeyProgramInfoEditConfiguration;
 9  
 import org.kuali.student.lum.program.client.properties.ProgramProperties;
 10  
 
 11  0
 public class MajorProposalKeyProgramInfoEditConfiguration extends MajorKeyProgramInfoEditConfiguration {
 12  
 
 13  
     
 14  
         /**
 15  
          * Override to configuration so credential program field is editable. 
 16  
          */
 17  
         @Override
 18  
         protected VerticalSection createKeyProgramInformationSection() {
 19  0
         VerticalSection section = new VerticalSection(SectionTitle.generateH3Title(ProgramProperties.get().programInformation_identifyingDetails()));
 20  
         //KSLAB-2175 - it makes this readOnlySelection box shift under the line drawn by this section heading... Nice  to have JIRA
 21  0
         VerticalSection s1 = new VerticalSection();
 22  0
         HorizontalSection s2 = new HorizontalSection();
 23  
         
 24  0
         configurer.addField(s1, ProgramConstants.CODE, new MessageKeyInfo(ProgramProperties.get().programInformation_code()));
 25  0
         configurer.addField(s1, ProgramConstants.PROGRAM_CLASSIFICATION, new MessageKeyInfo(ProgramProperties.get().programInformation_classification()));
 26  0
         configurer.addField(s1, ProgramConstants.DEGREE_TYPE, new MessageKeyInfo(ProgramProperties.get().programInformation_degreeType()));
 27  0
         s2.addSection(s1);
 28  0
         s2.addSection(createReadOnlySection());
 29  0
         section.addSection(s2);
 30  0
         return section;
 31  
     }        
 32  
         
 33  
     protected VerticalSection createReadOnlySection() {
 34  0
         VerticalSection section = new VerticalSection();
 35  0
         section.addStyleName("readOnlySection");
 36  0
         section.addStyleName("readOnlyNeedsToBeOnTheRight");
 37  0
         configurer.addReadOnlyField(section, ProgramConstants.CREDENTIAL_PROGRAM_INSTITUTION_ID, new MessageKeyInfo(ProgramProperties.get().programInformation_institution()));
 38  0
         configurer.addReadOnlyField(section, ProgramConstants.CREDENTIAL_PROGRAM_TYPE_NAME, new MessageKeyInfo(ProgramProperties.get().programInformation_credentialProgram()));
 39  0
         configurer.addReadOnlyField(section, ProgramConstants.CREDENTIAL_PROGRAM_LEVEL, new MessageKeyInfo(ProgramProperties.get().programInformation_level()));
 40  0
         return section;
 41  
     }
 42  
 
 43  
 }