1 | |
package org.kuali.student.lum.program.client.credential.view; |
2 | |
|
3 | |
import org.kuali.student.common.ui.client.configurable.mvc.Configurer; |
4 | |
import org.kuali.student.common.ui.client.mvc.Controller; |
5 | |
import org.kuali.student.lum.common.client.configuration.AbstractControllerConfiguration; |
6 | |
import org.kuali.student.lum.program.client.ProgramMsgConstants; |
7 | |
import org.kuali.student.lum.program.client.ProgramSections; |
8 | |
import org.kuali.student.lum.program.client.credential.CredentialEditableHeader; |
9 | |
import org.kuali.student.lum.program.client.credential.CredentialManager; |
10 | |
import org.kuali.student.lum.program.client.requirements.ProgramRequirementsViewController; |
11 | |
|
12 | |
public class CredentialRequirementsViewConfiguration extends AbstractControllerConfiguration { |
13 | |
|
14 | |
private ProgramRequirementsViewController progReqcontroller; |
15 | |
|
16 | 0 | public CredentialRequirementsViewConfiguration(Configurer configurer, boolean special) { |
17 | 0 | this.setConfigurer(configurer); |
18 | 0 | progReqcontroller = new ProgramRequirementsViewController(controller, CredentialManager.getEventBus(), |
19 | |
getLabel(ProgramMsgConstants.PROGRAM_MENU_SECTIONS_REQUIREMENTS), ProgramSections.PROGRAM_REQUIREMENTS_VIEW, true, |
20 | |
(special ? new CredentialEditableHeader(getLabel(ProgramMsgConstants.PROGRAM_MENU_SECTIONS_REQUIREMENTS), ProgramSections.PROGRAM_REQUIREMENTS_EDIT) : null)); |
21 | 0 | rootSection = progReqcontroller.getProgramRequirementsView(); |
22 | 0 | } |
23 | |
|
24 | |
@Override |
25 | |
protected void buildLayout() { |
26 | 0 | } |
27 | |
|
28 | |
@Override |
29 | |
public void setController(Controller controller) { |
30 | 0 | this.controller = controller; |
31 | 0 | if (progReqcontroller != null) { |
32 | 0 | progReqcontroller.setParentController(controller); |
33 | |
} |
34 | 0 | } |
35 | |
} |
36 | |
|