BrightSide Workbench Full Report + Source Code
FormulaListbox.java
Go to the documentation of this file.
1 package org.turro.crm.zul.vendor;
2 
3 import org.turro.crm.entity.Formula;
4 import org.turro.crm.entity.FormulaType;
5 import org.turro.crm.search.FormulaResults;
6 import org.turro.zkoss.input.CollectionListbox;
7 
12 public class FormulaListbox extends CollectionListbox<Formula> {
13 
14  public void setFormulaType(FormulaType formulaType) {
15  setCollection(new FormulaResults(formulaType).getFormulaList());
16  }
17 
18  @Override
19  protected String convertToString(Formula v) {
20  return v.getName();
21  }
22 
23 }
void setFormulaType(FormulaType formulaType)
void setCollection(Collection< V > collection)