18 package org.turro.financials.account;
20 import java.util.LinkedList;
21 import org.turro.elephant.db.WhereClause;
22 import org.turro.financials.db.FinancialsPU;
23 import org.turro.financials.entity.Account;
24 import org.turro.financials.model.AccountFormat;
25 import org.turro.jpa.Dao;
26 import org.turro.zkoss.input.GenericCombobox;
34 private boolean allowWildcards, allowNewAccount;
37 return allowNewAccount;
41 this.allowNewAccount = allowNewAccount;
45 return allowWildcards;
49 this.allowWildcards = allowWildcards;
56 }
else if(allowWildcards) {
63 public void populateList(String value, LinkedList list,
int nRows) {
66 wc.
addClause(
"select account from Account as account");
68 wc.
addLikeFields(
new String[] {
"account.id",
"account.description" }, value);
69 wc.
addClause(
"order by account.description");
70 list.addAll(dao.getResultList(wc, nRows));
80 Account acc = super.getObjectValue();
81 String text = getText();
void addClause(String clause)
void addLikeFields(String[] fields, String value)
void populateList(String value, LinkedList list, int nRows)
String getTextFromObject(Account value)
void setAllowWildcards(boolean allowWildcards)
String getAccountString()
boolean isAllowNewAccount()
boolean isAllowWildcards()
void setAllowNewAccount(boolean allowNewAccount)
void proposeDescription()