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 | 0 | public ManagingBodiesEditConfiguration() { |
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 | configurer.addField(section, ProgramConstants.DEPLOYMENT_UNIT, new MessageKeyInfo(ProgramProperties.get().managingBodies_deploymentUnit())); |
34 | 0 | configurer.addField(section, ProgramConstants.FINANCIAL_RESOURCES_UNIT, new MessageKeyInfo(ProgramProperties.get().managingBodies_financialResourcesUnit())); |
35 | 0 | configurer.addField(section, ProgramConstants.FINANCIAL_CONTROL_UNIT, new MessageKeyInfo(ProgramProperties.get().managingBodies_financialControlUnit())); |
36 | 0 | return section; |
37 | |
} |
38 | |
|
39 | |
private VerticalSection createRightSection() { |
40 | 0 | VerticalSection section = new VerticalSection(); |
41 | 0 | configurer.addField(section, ProgramConstants.CURRICULUM_OVERSIGHT_DIVISION, new MessageKeyInfo(ProgramProperties.get().managingBodies_curriculumOversightDivision())); |
42 | 0 | configurer.addField(section, ProgramConstants.STUDENT_OVERSIGHT_DIVISION, new MessageKeyInfo(ProgramProperties.get().managingBodies_studentOversightDivision())); |
43 | 0 | configurer.addField(section, ProgramConstants.DEPLOYMENT_DIVISION, new MessageKeyInfo(ProgramProperties.get().managingBodies_deploymentDivision())); |
44 | 0 | configurer.addField(section, ProgramConstants.FINANCIAL_RESOURCES_DIVISION, new MessageKeyInfo(ProgramProperties.get().managingBodies_financialResourcesDivision())); |
45 | 0 | configurer.addField(section, ProgramConstants.FINANCIAL_CONTROL_DIVISION, new MessageKeyInfo(ProgramProperties.get().managingBodies_financialControlDivision())); |
46 | 0 | return section; |
47 | |
} |
48 | |
} |