001    package org.kuali.student.lum.program.client.credential;
002    
003    import com.google.gwt.core.client.GWT;
004    import com.google.gwt.event.shared.HandlerManager;
005    import org.kuali.student.common.ui.client.application.ViewContext;
006    import org.kuali.student.common.ui.client.mvc.DataModel;
007    import org.kuali.student.lum.program.client.ProgramController;
008    import org.kuali.student.lum.program.client.rpc.CredentialProgramRpcService;
009    import org.kuali.student.lum.program.client.rpc.MajorDisciplineRpcServiceAsync;
010    import org.kuali.student.lum.program.client.widgets.ProgramSideBar;
011    
012    /**
013     * @author Igor
014     */
015    public class CredentialController extends ProgramController {
016        /**
017         * Constructor.
018         *
019         * @param programModel
020         */
021        public CredentialController(DataModel programModel, ViewContext viewContext, HandlerManager eventBus) {
022            super("Bacc", programModel, viewContext, eventBus);
023            sideBar = new ProgramSideBar(eventBus, ProgramSideBar.Type.CREDENTIAL);
024        }
025    
026        /**
027         * Create a ProgramRpcServiceAsync (or subclass) appropriate for this Controller
028         */
029        @Override
030        protected MajorDisciplineRpcServiceAsync createProgramRemoteService() {
031            return GWT.create(CredentialProgramRpcService.class);
032        }
033    
034        @Override
035        protected void configureView() {
036            super.configureView();
037            addContentWidget(createCommentPanel());
038        }
039    }