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 | 0 | public CredentialViewAllSectionsConfiguration() { |
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(CredentialInformationViewConfiguration.create()); |
25 | 0 | configurationManager.registerConfiguration(CredentialManagingBodiesViewConfiguration.create()); |
26 | 0 | configurationManager.registerConfiguration(CredentialCatalogDetailsViewConfiguration.create()); |
27 | 0 | configurationManager.registerConfiguration(new CredentialRequirementsViewConfiguration(false)); |
28 | 0 | configurationManager.registerConfiguration(CredentialLearningObjectivesViewConfiguration.create()); |
29 | 0 | for (Configuration configuration : configurationManager.getConfigurations()) { |
30 | 0 | if (configuration instanceof AbstractControllerConfiguration) { |
31 | 0 | ((AbstractControllerConfiguration) configuration).setController(controller); |
32 | |
} |
33 | 0 | rootSection.addSection((Section) configuration.getView()); |
34 | |
} |
35 | 0 | } |
36 | |
} |