| 1 |  |  package org.kuali.student.lum.program.client.credential.edit; | 
  | 2 |  |   | 
  | 3 |  |  import org.kuali.student.common.ui.client.configurable.mvc.sections.HorizontalSection; | 
  | 4 |  |  import org.kuali.student.common.ui.client.configurable.mvc.sections.VerticalSection; | 
  | 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.properties.ProgramProperties; | 
  | 11 |  |   | 
  | 12 |  |   | 
  | 13 |  |   | 
  | 14 |  |   | 
  | 15 |  |  public class CredentialManagingBodiesEditConfiguration extends AbstractSectionConfiguration { | 
  | 16 |  |   | 
  | 17 | 0 |      public CredentialManagingBodiesEditConfiguration() { | 
  | 18 | 0 |          rootSection = new VerticalSectionView(ProgramSections.MANAGE_BODIES_EDIT, ProgramProperties.get().program_menu_sections_managingBodies(), ProgramConstants.PROGRAM_MODEL_ID); | 
  | 19 | 0 |      } | 
  | 20 |  |   | 
  | 21 |  |      @Override | 
  | 22 |  |      protected void buildLayout() { | 
  | 23 | 0 |          HorizontalSection horizontalSection = new HorizontalSection(); | 
  | 24 | 0 |          horizontalSection.addSection(createLeftSection()); | 
  | 25 | 0 |          horizontalSection.addSection(createRightSection()); | 
  | 26 | 0 |          rootSection.addSection(horizontalSection); | 
  | 27 | 0 |      } | 
  | 28 |  |   | 
  | 29 |  |      private VerticalSection createLeftSection() { | 
  | 30 | 0 |          VerticalSection section = new VerticalSection(); | 
  | 31 | 0 |          configurer.addField(section, ProgramConstants.CURRICULUM_OVERSIGHT_UNIT, new MessageKeyInfo(ProgramProperties.get().managingBodies_curriculumOversightUnit())); | 
  | 32 | 0 |          configurer.addField(section, ProgramConstants.STUDENT_OVERSIGHT_UNIT, new MessageKeyInfo(ProgramProperties.get().managingBodies_studentOversightUnit())); | 
  | 33 | 0 |          return section; | 
  | 34 |  |      } | 
  | 35 |  |   | 
  | 36 |  |      private VerticalSection createRightSection() { | 
  | 37 | 0 |          VerticalSection section = new VerticalSection(); | 
  | 38 | 0 |          configurer.addField(section, ProgramConstants.CURRICULUM_OVERSIGHT_DIVISION, new MessageKeyInfo(ProgramProperties.get().managingBodies_curriculumOversightDivision())); | 
  | 39 | 0 |          configurer.addField(section, ProgramConstants.STUDENT_OVERSIGHT_DIVISION, new MessageKeyInfo(ProgramProperties.get().managingBodies_studentOversightDivision())); | 
  | 40 | 0 |          return section; | 
  | 41 |  |      } | 
  | 42 |  |  } |