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.DocumentColumn;
24 import org.turro.financials.entity.DocumentDefinition;
25 import org.turro.financials.entity.RelatedColumn;
26 import org.turro.i18n.I_;
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.zk.ui.ext.AfterCompose;
31 import org.zkoss.zul.Row;
52 return documentDefinition;
56 this.documentDefinition = documentDefinition;
85 dcl.setMold(
"select");
89 return super.createEditor(editableCell);
100 return super.formatCell(editableCell, value);
103 private void addColumns() {
105 addColumn(
I_.
get(
"Column"), org.turro.financials.entity.DocumentColumn.class,
106 "documentColumn",
null, 0,
false,
false).setWidth(
"70%");
108 "columnOrder",
null, 0,
false,
false).setWidth(
"30%");
109 }
catch (ClassNotFoundException ex) {
110 Logger.getLogger(
RelatedColumnGrid.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(
null), ex);
Set< RelatedColumn > getDocumentColumns()
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)