1 package org.kuali.student.lum.program.client.credential.edit; 2 3 import org.kuali.student.common.ui.client.mvc.Controller; 4 import org.kuali.student.common.ui.client.mvc.View; 5 import org.kuali.student.lum.common.client.configuration.AbstractControllerConfiguration; 6 import org.kuali.student.lum.program.client.ProgramSections; 7 import org.kuali.student.lum.program.client.credential.CredentialManager; 8 import org.kuali.student.lum.program.client.properties.ProgramProperties; 9 import org.kuali.student.lum.program.client.requirements.ProgramRequirementsViewController; 10 11 import com.google.gwt.user.client.ui.Widget; 12 13 public class CredentialRequirementsEditConfiguration extends AbstractControllerConfiguration { 14 15 private ProgramRequirementsViewController progReqcontroller; 16 17 @Override 18 public View getView() { 19 progReqcontroller = new ProgramRequirementsViewController(controller, CredentialManager.getEventBus(), 20 ProgramProperties.get().program_menu_sections_requirements(), ProgramSections.PROGRAM_REQUIREMENTS_EDIT, false, null); 21 return progReqcontroller; 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 @Override 37 public Widget asWidget() { 38 return controller; 39 } 40 41 @Override 42 public Enum<?> getName() { 43 return ProgramSections.PROGRAM_REQUIREMENTS_EDIT; 44 } 45 }