| 1 | |
package org.kuali.student.lum.program.client.core.view; |
| 2 | |
|
| 3 | |
import org.kuali.student.common.ui.client.mvc.Controller; |
| 4 | |
import org.kuali.student.lum.common.client.configuration.AbstractControllerConfiguration; |
| 5 | |
import org.kuali.student.lum.program.client.ProgramSections; |
| 6 | |
import org.kuali.student.lum.program.client.core.CoreEditableHeader; |
| 7 | |
import org.kuali.student.lum.program.client.core.CoreManager; |
| 8 | |
import org.kuali.student.lum.program.client.properties.ProgramProperties; |
| 9 | |
import org.kuali.student.lum.program.client.requirements.ProgramRequirementsViewController; |
| 10 | |
|
| 11 | |
public class CoreRequirementsViewConfiguration extends AbstractControllerConfiguration { |
| 12 | |
|
| 13 | |
private ProgramRequirementsViewController progReqcontroller; |
| 14 | |
|
| 15 | 0 | public CoreRequirementsViewConfiguration(boolean special) { |
| 16 | 0 | progReqcontroller = new ProgramRequirementsViewController(controller, CoreManager.getEventBus(), |
| 17 | |
ProgramProperties.get().program_menu_sections_requirements(), ProgramSections.PROGRAM_REQUIREMENTS_VIEW, |
| 18 | |
true, (special ? new CoreEditableHeader(ProgramProperties.get().program_menu_sections_requirements(), ProgramSections.PROGRAM_REQUIREMENTS_EDIT) : null)); |
| 19 | 0 | rootSection = progReqcontroller.getProgramRequirementsView(); |
| 20 | 0 | } |
| 21 | |
|
| 22 | |
@Override |
| 23 | |
protected void buildLayout() { |
| 24 | 0 | } |
| 25 | |
|
| 26 | |
@Override |
| 27 | |
public void setController(Controller controller) { |
| 28 | 0 | this.controller = controller; |
| 29 | 0 | if (progReqcontroller != null) { |
| 30 | 0 | progReqcontroller.setParentController(controller); |
| 31 | |
} |
| 32 | 0 | } |
| 33 | |
} |