001    /*
002     * Copyright 2011 The Kuali Foundation.
003     * 
004     * Licensed under the Educational Community License, Version 2.0 (the "License");
005     * you may not use this file except in compliance with the License.
006     * You may obtain a copy of the License at
007     * 
008     * http://www.opensource.org/licenses/ecl2.php
009     * 
010     * Unless required by applicable law or agreed to in writing, software
011     * distributed under the License is distributed on an "AS IS" BASIS,
012     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013     * See the License for the specific language governing permissions and
014     * limitations under the License.
015     */
016    package org.kuali.kfs.coa.businessobject.options;
017    
018    import java.util.ArrayList;
019    import java.util.List;
020    
021    import org.kuali.rice.kns.lookup.keyvalues.KeyValuesBase;
022    import org.kuali.rice.core.util.KeyLabelPair;
023    
024    /**
025     * This class creates a new finder for our forms view (creates a drop-down of {@link OrganizationReversionCode}s)
026     */
027    public class OrganizationReversionCodeValuesFinder extends KeyValuesBase {
028    
029        /**
030         * This is a static list of {@link OrganizationReversionCode}s
031         * <ul>
032         * <li>"A", "A - CF +/- bal in same account"</li>
033         * <li>"C1", "C1 - CF budget then CF + and R -"</li>
034         * <li>"C2", "C2 - Don't CF budget then CF + and R -"</li>
035         * <li>"N1", "N1 - CF budget then R + and CF -"</li>
036         * <li>"N2", "N2 - Don't CF budget then R + and CF -"</li>
037         * <li>"R1", "R1 - CF budget then R Remaining"</li>
038         * <li>"R2", "R2 - Don't CF budget then R Remaining"</li>
039         * </ul>
040         * 
041         * @see org.kuali.rice.kns.lookup.keyvalues.KeyValuesFinder#getKeyValues()
042         */
043        public List getKeyValues() {
044            List keyValues = new ArrayList();
045            keyValues.add(new KeyLabelPair("", ""));
046            keyValues.add(new KeyLabelPair("A", "A - CF +/- bal in same account"));
047            keyValues.add(new KeyLabelPair("C1", "C1 - CF budget then CF + and R -"));
048            keyValues.add(new KeyLabelPair("C2", "C2 - Don't CF budget then CF + and R -"));
049            keyValues.add(new KeyLabelPair("N1", "N1 - CF budget then R + and CF -"));
050            keyValues.add(new KeyLabelPair("N2", "N2 - Don't CF budget then R + and CF -"));
051            keyValues.add(new KeyLabelPair("R1", "R1 - CF budget then R Remaining"));
052            keyValues.add(new KeyLabelPair("R2", "R2 - Don't CF budget then R Remaining"));
053            return keyValues;
054        }
055    
056    }