1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
|
17 | |
package org.kuali.student.enrollment.class2.appointment.keyvalue; |
18 | |
|
19 | |
import org.kuali.rice.core.api.util.ConcreteKeyValue; |
20 | |
import org.kuali.rice.core.api.util.KeyValue; |
21 | |
import org.kuali.rice.krad.uif.control.UifKeyValuesFinderBase; |
22 | |
import org.kuali.rice.krad.uif.view.ViewModel; |
23 | |
import org.kuali.student.r2.core.population.service.PopulationService; |
24 | |
|
25 | |
import java.io.Serializable; |
26 | |
import java.util.ArrayList; |
27 | |
import java.util.List; |
28 | |
|
29 | |
|
30 | |
|
31 | |
|
32 | |
|
33 | |
|
34 | 0 | public class StudentGroupsFinder extends UifKeyValuesFinderBase implements Serializable { |
35 | |
|
36 | |
private PopulationService populationService; |
37 | |
|
38 | 0 | private String[][] mockData = new String[][]{{"POP1","Athletes"}, |
39 | |
{"POP2","Seniors"}}; |
40 | |
|
41 | |
@Override |
42 | |
public List<KeyValue> getKeyValues(ViewModel model) { |
43 | 0 | List<KeyValue> keyValues = new ArrayList<KeyValue>(); |
44 | |
|
45 | 0 | for(String[] data:mockData){ |
46 | 0 | ConcreteKeyValue keyValue = new ConcreteKeyValue(); |
47 | 0 | keyValue.setKey(data[0]); |
48 | 0 | keyValue.setValue(data[1]); |
49 | 0 | keyValues.add(keyValue); |
50 | |
} |
51 | |
|
52 | 0 | return keyValues; |
53 | |
} |
54 | |
} |