1 package org.kuali.student.lum.program.client.credential.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 CredentialViewAllSectionsConfiguration extends AbstractControllerConfiguration {
16
17 public CredentialViewAllSectionsConfiguration() {
18 rootSection = new VerticalSectionView(ProgramSections.VIEW_ALL, ProgramProperties.get().program_menu_sections_viewAll(), ProgramConstants.PROGRAM_MODEL_ID, false);
19 }
20
21 @Override
22 protected void buildLayout() {
23 ConfigurationManager configurationManager = new ConfigurationManager(configurer);
24 configurationManager.registerConfiguration(CredentialInformationViewConfiguration.create());
25 configurationManager.registerConfiguration(CredentialManagingBodiesViewConfiguration.create());
26 configurationManager.registerConfiguration(CredentialCatalogDetailsViewConfiguration.create());
27 configurationManager.registerConfiguration(new CredentialRequirementsViewConfiguration(false));
28 configurationManager.registerConfiguration(CredentialLearningObjectivesViewConfiguration.create());
29 for (Configuration configuration : configurationManager.getConfigurations()) {
30 if (configuration instanceof AbstractControllerConfiguration) {
31 ((AbstractControllerConfiguration) configuration).setController(controller);
32 }
33 rootSection.addSection((Section) configuration.getView());
34 }
35 }
36 }