19 package org.turro.financials.contract;
21 import java.util.logging.Level;
22 import java.util.logging.Logger;
23 import org.turro.elephant.context.ElephantContext;
24 import org.turro.financials.entity.Contract;
25 import org.turro.financials.entity.Contracted;
26 import org.turro.financials.entity.Product;
27 import org.turro.financials.product.ProductCombobox;
28 import org.turro.i18n.I_;
29 import org.turro.jpa.entity.EntityCollections;
30 import org.turro.zkoss.grid.CollectionGrid;
31 import org.turro.zkoss.grid.EditableCell;
32 import org.zkoss.zk.ui.HtmlBasedComponent;
33 import org.zkoss.zk.ui.ext.AfterCompose;
34 import org.zkoss.zul.Row;
54 this.contract = contract;
90 return super.createEditor(editableCell);
102 return super.formatCell(editableCell, value);
105 private void addColumns() {
108 "product",
null, 0,
false,
false).setWidth(
"35%");
110 "concept",
null, 0,
false,
false).setWidth(
"35%");
112 "price",
null, 0,
false,
false).setWidth(
"15%");
114 "quantity",
null, 0,
false,
false).setWidth(
"15%");
115 }
catch (ClassNotFoundException ex) {
116 Logger.getLogger(
ContractedGrid.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(
null), ex);
String formatCell(EditableCell editableCell, Object value)
void initiateRow(Row row, Contracted value)
HtmlBasedComponent createEditor(EditableCell editableCell)
boolean deleteRow(Row row)
void setContract(Contract contract)
boolean isValid(Contracted v)
Set< Contracted > getContracted()
void setContract(Contract contract)
void setQuantity(double quantity)
String getProductString()
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)