1 | |
package org.kuali.student.lum.program.client.major.view; |
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.properties.ProgramProperties; |
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
public class ViewAllSectionConfiguration extends AbstractControllerConfiguration { |
16 | |
|
17 | 0 | public ViewAllSectionConfiguration() { |
18 | 0 | rootSection = new VerticalSectionView(ProgramSections.VIEW_ALL, ProgramProperties.get().program_menu_sections_viewAll(), ProgramConstants.PROGRAM_MODEL_ID, false); |
19 | 0 | } |
20 | |
|
21 | |
@Override |
22 | |
protected void buildLayout() { |
23 | 0 | ConfigurationManager configurationManager = new ConfigurationManager(configurer); |
24 | 0 | configurationManager.registerConfiguration(MajorKeyProgramInfoViewConfiguration.create()); |
25 | 0 | configurationManager.registerConfiguration(ManagingBodiesViewConfiguration.create()); |
26 | 0 | configurationManager.registerConfiguration(SpecializationsViewConfiguration.create()); |
27 | 0 | configurationManager.registerConfiguration(CatalogInformationViewConfiguration.create()); |
28 | 0 | configurationManager.registerConfiguration(new ProgramRequirementsViewConfiguration(false)); |
29 | 0 | configurationManager.registerConfiguration(LearningObjectivesViewConfiguration.create()); |
30 | 0 | for (Configuration configuration : configurationManager.getConfigurations()) { |
31 | 0 | if (configuration instanceof AbstractControllerConfiguration) { |
32 | 0 | ((AbstractControllerConfiguration) configuration).setController(controller); |
33 | |
} |
34 | 0 | rootSection.addSection((Section) configuration.getView()); |
35 | |
} |
36 | 0 | } |
37 | |
} |