1 package org.kuali.student.enrollment.class2.courseoffering.keyvalue;
2
3 import org.kuali.rice.core.api.util.KeyValue;
4 import org.kuali.rice.krad.uif.control.UifKeyValuesFinderBase;
5 import org.kuali.rice.krad.uif.view.ViewModel;
6 import org.kuali.rice.krad.web.form.MaintenanceDocumentForm;
7 import org.kuali.student.enrollment.class2.courseoffering.dto.CourseOfferingEditWrapper;
8
9 import java.io.Serializable;
10 import java.util.List;
11
12
13
14
15
16
17
18 public class CourseOfferingCodesKeyValues extends UifKeyValuesFinderBase implements Serializable {
19
20 @Override
21 public List<KeyValue> getKeyValues( ViewModel model ) {
22 MaintenanceDocumentForm form = (MaintenanceDocumentForm)model;
23 CourseOfferingEditWrapper wrapper = (CourseOfferingEditWrapper)form.getDocument().getNewMaintainableObject().getDataObject();
24 return wrapper.getRenderHelper().getRelatedCOs();
25 }
26 }