18 package org.turro.financials.document;
20 import java.util.logging.Level;
21 import java.util.logging.Logger;
22 import org.turro.elephant.context.ElephantContext;
23 import org.turro.financials.entity.DocumentDefinition;
24 import org.turro.financials.entity.LineType;
25 import org.turro.financials.entity.RelatedLineType;
26 import org.turro.financials.linetype.LineTypeCombobox;
27 import org.turro.i18n.I_;
28 import org.turro.zkoss.grid.CollectionGrid;
29 import org.turro.zkoss.grid.EditableCell;
30 import org.zkoss.zk.ui.HtmlBasedComponent;
31 import org.zkoss.zk.ui.ext.AfterCompose;
32 import org.zkoss.zul.Row;
53 return documentDefinition;
57 this.documentDefinition = documentDefinition;
89 return super.createEditor(editableCell);
100 return super.formatCell(editableCell, value);
103 private void addColumns() {
105 addColumn(
I_.
get(
"Line type"), org.turro.financials.entity.LineType.class,
106 "lineType",
null, 0,
false,
false).setWidth(
"60%");
108 "defaultLineType",
null, 0,
false,
false).setWidth(
"40%");
109 }
catch (ClassNotFoundException ex) {
110 Logger.getLogger(
RelatedLineTypeGrid.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(
null), ex);
Set< RelatedLineType > getRelatedLineTypes()
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)