1 package org.kuali.student.lum.program.client.major.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.major.MajorManager; 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 ProgramRequirementsEditConfiguration extends AbstractControllerConfiguration { 14 15 private ProgramRequirementsViewController progReqcontroller; 16 17 @Override 18 public View getView() { 19 progReqcontroller = new ProgramRequirementsViewController(controller, MajorManager.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 29 @Override 30 public void setController(Controller controller) { 31 this.controller = controller; 32 if (progReqcontroller != null) { 33 progReqcontroller.setParentController(controller); 34 } 35 } 36 37 @Override 38 public Widget asWidget() { 39 return controller; 40 } 41 42 @Override 43 public Enum<?> getName() { 44 return ProgramSections.PROGRAM_REQUIREMENTS_EDIT; 45 } 46 }