18 package org.turro.financials.contract;
20 import java.util.logging.Level;
21 import java.util.logging.Logger;
22 import org.turro.elephant.context.ElephantContext;
23 import org.turro.financials.document.DocumentDefinitionCombobox;
24 import org.turro.financials.entity.ContractDefinition;
25 import org.turro.financials.entity.DocumentDefinition;
26 import org.turro.financials.entity.RelatedDocument;
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 contractDefinition;
57 this.contractDefinition = contractDefinition;
89 return super.createEditor(editableCell);
100 return super.formatCell(editableCell, value);
103 private void addColumns() {
105 addColumn(
I_.
get(
"Document model"), org.turro.financials.entity.DocumentDefinition.class,
106 "documentDefinition",
null, 0,
false,
false).setWidth(
"70%");
108 "allowed",
null, 0,
false,
false).setWidth(
"30%");
109 }
catch (ClassNotFoundException ex) {
110 Logger.getLogger(
RelatedDocumentGrid.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(
null), ex);
Set< RelatedDocument > getRelatedDocuments()
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)