1 | |
package org.kuali.student.lum.program.client.variation.edit; |
2 | |
|
3 | |
import org.kuali.student.common.ui.client.configurable.mvc.sections.Section; |
4 | |
import org.kuali.student.common.ui.client.configurable.mvc.views.VerticalSectionView; |
5 | |
import org.kuali.student.lum.common.client.configuration.AbstractControllerConfiguration; |
6 | |
import org.kuali.student.lum.common.client.configuration.Configuration; |
7 | |
import org.kuali.student.lum.common.client.configuration.ConfigurationManager; |
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.major.view.*; |
11 | |
import org.kuali.student.lum.program.client.properties.ProgramProperties; |
12 | |
import org.kuali.student.lum.program.client.variation.view.VariationInformationViewConfiguration; |
13 | |
|
14 | |
|
15 | |
|
16 | |
|
17 | |
public class VariationSummaryConfiguration extends AbstractControllerConfiguration { |
18 | |
|
19 | 0 | public VariationSummaryConfiguration() { |
20 | 0 | rootSection = new VerticalSectionView(ProgramSections.SUMMARY, ProgramProperties.get().variation_summary(), ProgramConstants.PROGRAM_MODEL_ID, true); |
21 | 0 | } |
22 | |
|
23 | |
@Override |
24 | |
protected void buildLayout() { |
25 | 0 | ConfigurationManager configurationManager = new ConfigurationManager(configurer); |
26 | 0 | configurationManager.registerConfiguration(VariationInformationViewConfiguration.createSpecial()); |
27 | 0 | configurationManager.registerConfiguration(ManagingBodiesViewConfiguration.createSpecial(controller)); |
28 | 0 | configurationManager.registerConfiguration(CatalogInformationViewConfiguration.createSpecial(controller)); |
29 | 0 | configurationManager.registerConfiguration(new ProgramRequirementsViewConfiguration(true)); |
30 | 0 | configurationManager.registerConfiguration(LearningObjectivesViewConfiguration.createSpecial(controller)); |
31 | 0 | configurationManager.registerConfiguration(SupportingDocsViewConfiguration.createSpecial(controller)); |
32 | 0 | for (Configuration configuration : configurationManager.getConfigurations()) { |
33 | 0 | if (configuration instanceof AbstractControllerConfiguration) { |
34 | 0 | ((AbstractControllerConfiguration) configuration).setController(controller); |
35 | |
} |
36 | 0 | rootSection.addSection((Section) configuration.getView()); |
37 | |
} |
38 | 0 | } |
39 | |
} |
40 | |
|