19 package org.turro.crm.zul.customer;
21 import java.util.Date;
22 import org.turro.crm.entity.*;
23 import org.turro.crm.zul.vendor.FormulaListbox;
24 import org.turro.crm.zul.vendor.VendorCombobox;
25 import org.turro.i18n.I_;
26 import org.turro.jpa.entity.EntityCollections;
27 import org.turro.zkoss.grid.CollectionGrid;
28 import org.turro.zkoss.grid.EditableCell;
29 import org.zkoss.zk.ui.HtmlBasedComponent;
30 import org.zkoss.zul.Row;
45 this.customer = customer;
84 cdc.setMold(
"select");
91 cdc.setMold(
"select");
95 return super.createEditor(editableCell);
101 return value !=
null ? ((
Vendor) value).getName() :
null;
103 return value !=
null ? ((
Formula) value).getName() :
null;
105 return value !=
null ? ((
Formula) value).getName() :
null;
107 return super.formatCell(editableCell, value);
110 private void addColumns() {
114 addColumn(
I_.
get(
"Creation"), Date.class,
"owningDate",
null, 0,
true,
false).setHflex(
"1");
void setOwningDate(Date owningDate)
void setCustomer(Customer customer)
Set< CustomerOwner > getOwnedBy()
void setCustomer(Customer customer)
boolean deleteRow(Row row)
String formatCell(EditableCell editableCell, Object value)
void initiateRow(Row row, CustomerOwner value)
boolean isValid(CustomerOwner v)
HtmlBasedComponent createEditor(EditableCell editableCell)
static String get(String msg)
static EntityCollections entities(Collection values)
void setCollection(Collection< V > collection)
EditableColumn addColumn(String label, Class javaClass, String property, String format, int scale, boolean onlyDate, boolean readOnly)
Object getCellValue(EditableCell editableCell)