18 package org.turro.financials.product;
20 import java.util.logging.Level;
21 import java.util.logging.Logger;
22 import org.turro.string.Strings;
23 import org.turro.elephant.context.ElephantContext;
24 import org.turro.financials.contract.ContractCombobox;
25 import org.turro.financials.entity.Contract;
26 import org.turro.financials.entity.Product;
27 import org.turro.financials.entity.ProductByContractor;
28 import org.turro.i18n.I_;
29 import org.turro.zkoss.grid.CollectionGrid;
30 import org.turro.zkoss.grid.EditableCell;
31 import org.turro.zkoss.grid.EditableColumn;
32 import org.zkoss.zk.ui.HtmlBasedComponent;
33 import org.zkoss.zul.Row;
57 this.product = product;
100 return super.formatCell(editableCell, value);
114 return super.createEditor(editableCell);
119 super.cellChanged(editableCell, value);
123 private void addColumns() {
126 null, 0,
false,
false);
128 null, 0,
false,
false).setWidth(
"200px");
130 null, 0,
false,
false);
132 null, 2,
false,
false).setWidth(
"90px");
134 null, 2,
false,
false).setWidth(
"120px");
135 }
catch (ClassNotFoundException ex) {
136 Logger.getLogger(
ProductContractorGrid.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(
null), ex);
String getContractorCode()
void setProduct(Product product)
Set< ProductByContractor > getProductByContractors()
void setProduct(Product product)
ProductContractorGrid(Product product)
String formatCell(EditableCell editableCell, Object value)
void cellChanged(EditableCell editableCell, Object value)
void initiateRow(Row row, ProductByContractor value)
HtmlBasedComponent createEditor(EditableCell editableCell)
void updateProduct(Product product)
boolean deleteRow(Row row)
boolean isValid(ProductByContractor v)
static String get(String msg)
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)