1 package org.kuali.student.lum.program.client.major.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 ManagingBodiesEditConfiguration extends AbstractSectionConfiguration {
16
17 public ManagingBodiesEditConfiguration() {
18 rootSection = new VerticalSectionView(ProgramSections.MANAGE_BODIES_EDIT, ProgramProperties.get().program_menu_sections_managingBodies(), ProgramConstants.PROGRAM_MODEL_ID);
19 }
20
21 @Override
22 protected void buildLayout() {
23 HorizontalSection horizontalSection = new HorizontalSection();
24 horizontalSection.addSection(createLeftSection());
25 horizontalSection.addSection(createRightSection());
26 rootSection.addSection(horizontalSection);
27 }
28
29 private VerticalSection createLeftSection() {
30 VerticalSection section = new VerticalSection();
31 configurer.addField(section, ProgramConstants.CURRICULUM_OVERSIGHT_UNIT, new MessageKeyInfo(ProgramProperties.get().managingBodies_curriculumOversightUnit()));
32 configurer.addField(section, ProgramConstants.STUDENT_OVERSIGHT_UNIT, new MessageKeyInfo(ProgramProperties.get().managingBodies_studentOversightUnit()));
33 configurer.addField(section, ProgramConstants.DEPLOYMENT_UNIT, new MessageKeyInfo(ProgramProperties.get().managingBodies_deploymentUnit()));
34 configurer.addField(section, ProgramConstants.FINANCIAL_RESOURCES_UNIT, new MessageKeyInfo(ProgramProperties.get().managingBodies_financialResourcesUnit()));
35 configurer.addField(section, ProgramConstants.FINANCIAL_CONTROL_UNIT, new MessageKeyInfo(ProgramProperties.get().managingBodies_financialControlUnit()));
36 return section;
37 }
38
39 private VerticalSection createRightSection() {
40 VerticalSection section = new VerticalSection();
41 configurer.addField(section, ProgramConstants.CURRICULUM_OVERSIGHT_DIVISION, new MessageKeyInfo(ProgramProperties.get().managingBodies_curriculumOversightDivision()));
42 configurer.addField(section, ProgramConstants.STUDENT_OVERSIGHT_DIVISION, new MessageKeyInfo(ProgramProperties.get().managingBodies_studentOversightDivision()));
43 configurer.addField(section, ProgramConstants.DEPLOYMENT_DIVISION, new MessageKeyInfo(ProgramProperties.get().managingBodies_deploymentDivision()));
44 configurer.addField(section, ProgramConstants.FINANCIAL_RESOURCES_DIVISION, new MessageKeyInfo(ProgramProperties.get().managingBodies_financialResourcesDivision()));
45 configurer.addField(section, ProgramConstants.FINANCIAL_CONTROL_DIVISION, new MessageKeyInfo(ProgramProperties.get().managingBodies_financialControlDivision()));
46 return section;
47 }
48 }