View Javadoc
1   package org.kuali.ole.describe.keyvalue;
2   
3   import org.kuali.rice.core.api.util.ConcreteKeyValue;
4   import org.kuali.rice.core.api.util.KeyValue;
5   import org.kuali.rice.krad.uif.control.UifKeyValuesFinderBase;
6   import org.kuali.rice.krad.uif.view.ViewModel;
7   import org.slf4j.Logger;
8   import org.slf4j.LoggerFactory;
9   
10  import java.util.ArrayList;
11  import java.util.List;
12  
13  /**
14   * Created with IntelliJ IDEA.
15   * User: juliyamonicas
16   * Date: 4/5/14
17   * Time: 7:24 PM
18   * To change this template use File | Settings | File Templates.
19   */
20  public class OLEStaffFieldKeyValueFinder extends UifKeyValuesFinderBase {
21  
22      public static final Logger LOG = LoggerFactory.getLogger(DocFormatKeyValueFinder.class);
23  
24      @Override
25      public List<KeyValue> getKeyValues(ViewModel model) {
26          List<KeyValue> options = new ArrayList<KeyValue>();
27          options.add(new ConcreteKeyValue("Y", "Yes"));
28          options.add(new ConcreteKeyValue("N", "No"));
29          return options;
30      }
31  }