View Javadoc

1   package org.kuali.student.lum.program.client.credential;
2   
3   import com.google.gwt.core.client.GWT;
4   import com.google.gwt.event.shared.HandlerManager;
5   import org.kuali.student.common.ui.client.application.ViewContext;
6   import org.kuali.student.common.ui.client.mvc.DataModel;
7   import org.kuali.student.lum.program.client.ProgramController;
8   import org.kuali.student.lum.program.client.rpc.CredentialProgramRpcService;
9   import org.kuali.student.lum.program.client.rpc.MajorDisciplineRpcServiceAsync;
10  import org.kuali.student.lum.program.client.widgets.ProgramSideBar;
11  
12  /**
13   * @author Igor
14   */
15  public class CredentialController extends ProgramController {
16      /**
17       * Constructor.
18       *
19       * @param programModel
20       */
21      public CredentialController(DataModel programModel, ViewContext viewContext, HandlerManager eventBus) {
22          super("Bacc", programModel, viewContext, eventBus);
23          sideBar = new ProgramSideBar(eventBus, ProgramSideBar.Type.CREDENTIAL);
24      }
25  
26      /**
27       * Create a ProgramRpcServiceAsync (or subclass) appropriate for this Controller
28       */
29      @Override
30      protected MajorDisciplineRpcServiceAsync createProgramRemoteService() {
31          return GWT.create(CredentialProgramRpcService.class);
32      }
33  
34      @Override
35      protected void configureView() {
36          super.configureView();
37          addContentWidget(createCommentPanel());
38      }
39  }