01: /*
02: * Copyright 2007 The Kuali Foundation.
03: *
04: * Licensed under the Educational Community License, Version 1.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.opensource.org/licenses/ecl1.php
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16: package org.kuali.module.chart.lookup.keyvalues;
17:
18: import java.util.ArrayList;
19: import java.util.List;
20:
21: import org.kuali.core.lookup.keyvalues.KeyValuesBase;
22: import org.kuali.core.web.ui.KeyLabelPair;
23:
24: /**
25: * This class creates a new finder for our forms view (creates a drop-down of {@link OrganizationReversionCode}s)
26: */
27: public class OrganizationReversionCodeValuesFinder extends
28: KeyValuesBase {
29:
30: /**
31: * This is a static list of {@link OrganizationReversionCode}s
32: * <ul>
33: * <li>"A", "A - CF +/- bal in same account"</li>
34: * <li>"C1", "C1 - CF budget then CF + and R -"</li>
35: * <li>"C2", "C2 - Don't CF budget then CF + and R -"</li>
36: * <li>"N1", "N1 - CF budget then R + and CF -"</li>
37: * <li>"N2", "N2 - Don't CF budget then R + and CF -"</li>
38: * <li>"R1", "R1 - CF budget then R Remaining"</li>
39: * <li>"R2", "R2 - Don't CF budget then R Remaining"</li>
40: * </ul>
41: *
42: * @see org.kuali.core.lookup.keyvalues.KeyValuesFinder#getKeyValues()
43: */
44: public List getKeyValues() {
45: List keyValues = new ArrayList();
46: keyValues.add(new KeyLabelPair("", ""));
47: keyValues.add(new KeyLabelPair("A",
48: "A - CF +/- bal in same account"));
49: keyValues.add(new KeyLabelPair("C1",
50: "C1 - CF budget then CF + and R -"));
51: keyValues.add(new KeyLabelPair("C2",
52: "C2 - Don't CF budget then CF + and R -"));
53: keyValues.add(new KeyLabelPair("N1",
54: "N1 - CF budget then R + and CF -"));
55: keyValues.add(new KeyLabelPair("N2",
56: "N2 - Don't CF budget then R + and CF -"));
57: keyValues.add(new KeyLabelPair("R1",
58: "R1 - CF budget then R Remaining"));
59: keyValues.add(new KeyLabelPair("R2",
60: "R2 - Don't CF budget then R Remaining"));
61: return keyValues;
62: }
63:
64: }
|