View Javadoc

1   package org.kuali.ole.select.keyvalue;
2   
3   import org.kuali.ole.OLEConstants;
4   import org.kuali.rice.core.api.util.ConcreteKeyValue;
5   import org.kuali.rice.core.api.util.KeyValue;
6   import org.kuali.rice.krad.uif.control.UifKeyValuesFinderBase;
7   import org.kuali.rice.krad.uif.view.ViewModel;
8   
9   import java.util.ArrayList;
10  import java.util.List;
11  
12  /**
13   * Created with IntelliJ IDEA.
14   * User: chenchulakshmig
15   * Date: 12/10/13
16   * Time: 1:04 PM
17   * To change this template use File | Settings | File Templates.
18   */
19  public class OLEAnnualStewardshipStatusFinder extends UifKeyValuesFinderBase {
20      @Override
21      public List<KeyValue> getKeyValues(ViewModel viewModel) {
22          List<KeyValue> statusOptions = new ArrayList<KeyValue>();
23          statusOptions.add(new ConcreteKeyValue(OLEConstants.RECIEVED, OLEConstants.RECIEVED));
24          statusOptions.add(new ConcreteKeyValue(OLEConstants.PAID, OLEConstants.PAID));
25          statusOptions.add(new ConcreteKeyValue(OLEConstants.RECEIVED_PAID, OLEConstants.RECEIVED_PAID));
26          return statusOptions;
27      }
28  }