1 | |
package org.kuali.student.lum.program.client.core.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 CoreViewAllConfiguration extends AbstractControllerConfiguration { |
16 | |
|
17 | 0 | public CoreViewAllConfiguration() { |
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(CoreInformationViewConfiguration.create()); |
25 | 0 | configurationManager.registerConfiguration(CoreManagingBodiesViewConfiguration.create()); |
26 | 0 | configurationManager.registerConfiguration(CoreCatalogInformationViewConfiguration.create()); |
27 | 0 | configurationManager.registerConfiguration(new CoreRequirementsViewConfiguration(false)); |
28 | 0 | configurationManager.registerConfiguration(CoreLearningObjectivesViewConfiguration.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 | |
} |