View Javadoc

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      public CredentialRequirementsViewConfiguration(Configurer configurer, boolean special) {
17          this.setConfigurer(configurer);
18          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          rootSection = progReqcontroller.getProgramRequirementsView();
22      }
23  
24      @Override
25      protected void buildLayout() {
26      }
27  
28      @Override
29      public void setController(Controller controller) {
30          this.controller = controller;
31          if (progReqcontroller != null) {
32              progReqcontroller.setParentController(controller);
33          }
34      }
35  }
36