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 | 0 | public class ProgramRequirementsEditConfiguration extends AbstractControllerConfiguration { |
14 | |
|
15 | |
private ProgramRequirementsViewController progReqcontroller; |
16 | |
|
17 | |
@Override |
18 | |
public View getView() { |
19 | 0 | progReqcontroller = new ProgramRequirementsViewController(controller, MajorManager.getEventBus(), |
20 | |
ProgramProperties.get().program_menu_sections_requirements(), ProgramSections.PROGRAM_REQUIREMENTS_EDIT, false, null); |
21 | 0 | return progReqcontroller; |
22 | |
} |
23 | |
|
24 | |
@Override |
25 | |
protected void buildLayout() { |
26 | |
|
27 | 0 | } |
28 | |
|
29 | |
@Override |
30 | |
public void setController(Controller controller) { |
31 | 0 | this.controller = controller; |
32 | 0 | if (progReqcontroller != null) { |
33 | 0 | progReqcontroller.setParentController(controller); |
34 | |
} |
35 | 0 | } |
36 | |
|
37 | |
@Override |
38 | |
public Widget asWidget() { |
39 | 0 | return controller; |
40 | |
} |
41 | |
|
42 | |
@Override |
43 | |
public Enum<?> getName() { |
44 | 0 | return ProgramSections.PROGRAM_REQUIREMENTS_EDIT; |
45 | |
} |
46 | |
} |