001/** 002 * Copyright 2005-2015 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 */ 016package org.kuali.rice.krad.labs.quickfinder; 017 018import org.kuali.rice.krad.labs.LabsRoleMember; 019import org.kuali.rice.krad.web.form.UifFormBase; 020 021import java.util.ArrayList; 022import java.util.List; 023 024/** 025 * Form to contain quickfinder's travel account fields. 026 * 027 * @author Kuali Rice Team (rice.collab@kuali.org) 028 */ 029public class QuickfinderForm extends UifFormBase { 030 031 private List<PersonAccount> personAccounts1; 032 private List<PersonAccount> personAccounts2; 033 private List<PersonAccount> personAccounts3; 034 private List<PersonAccount> personAccounts4; 035 private List<PersonAccount> personAccounts5; 036 037 private String nameField; 038 private String accountNumberField; 039 private String accountNameField; 040 private LabsRoleMember labsRoleMember; 041 042 public QuickfinderForm() { 043 super(); 044 personAccounts1 = cheapInit(); 045 personAccounts2 = cheapInit(); 046 personAccounts3 = cheapInit(); 047 personAccounts4 = cheapInit(); 048 personAccounts5 = cheapInit(); 049 } 050 051 public String getAccountNameField() { return accountNameField; } 052 053 public void setAccountNameField(String accountNameField) { 054 this.accountNameField = accountNameField; 055 } 056 057 public String getAccountNumberField() { 058 return accountNumberField; 059 } 060 061 public void setAccountNumberField(String accountNumberField) { 062 this.accountNumberField = accountNumberField; 063 } 064 065 public String getNameField() { 066 return nameField; 067 } 068 069 public void setNameField(String nameField) { 070 this.nameField = nameField; 071 } 072 073 public LabsRoleMember getLabsRoleMember() { 074 return labsRoleMember; 075 } 076 077 public void setLabsRoleMember(LabsRoleMember labsRoleMember) { 078 this.labsRoleMember = labsRoleMember; 079 } 080 081 public List<PersonAccount> getPersonAccounts1() { 082 return personAccounts1; 083 } 084 085 public void setPersonAccounts1(List<PersonAccount> personAccounts1) { 086 this.personAccounts1 = personAccounts1; 087 } 088 089 public List<PersonAccount> getPersonAccounts2() { 090 return personAccounts2; 091 } 092 093 public void setPersonAccounts2(List<PersonAccount> personAccounts2) { 094 this.personAccounts2 = personAccounts2; 095 } 096 097 public List<PersonAccount> getPersonAccounts3() { 098 return personAccounts3; 099 } 100 101 public void setPersonAccounts3(List<PersonAccount> personAccounts3) { 102 this.personAccounts3 = personAccounts3; 103 } 104 105 public List<PersonAccount> getPersonAccounts4() { 106 return personAccounts4; 107 } 108 109 public void setPersonAccounts4(List<PersonAccount> personAccounts4) { 110 this.personAccounts4 = personAccounts4; 111 } 112 113 public List<PersonAccount> getPersonAccounts5() { 114 return personAccounts5; 115 } 116 117 public void setPersonAccounts5(List<PersonAccount> personAccounts5) { 118 this.personAccounts5 = personAccounts5; 119 } 120 121 private List<PersonAccount> cheapInit () { 122 List<PersonAccount> peopleAccountsToInit = new ArrayList<PersonAccount>(); 123 peopleAccountsToInit.add(new PersonAccount("Abra")); 124 peopleAccountsToInit.add(new PersonAccount("Ca")); 125 peopleAccountsToInit.add(new PersonAccount("Dabra")); 126 return (peopleAccountsToInit); 127 } 128}