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.contract.ContractDefinitionCombobox;
24 import org.turro.financials.entity.ContractDefinition;
25 import org.turro.financials.entity.DocumentDefinition;
26 import org.turro.financials.entity.RelatedStoreDefinition;
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;
90 return super.createEditor(editableCell);
101 return super.formatCell(editableCell, value);
104 private void addColumns() {
106 addColumn(
I_.
get(
"Store model"), org.turro.financials.entity.ContractDefinition.class,
107 "relatedStore",
null, 0,
false,
false).setWidth(
"80%");
109 "allowed",
null, 0,
false,
false).setWidth(
"20%");
110 }
catch (ClassNotFoundException ex) {
111 Logger.getLogger(RelatedColumnGrid.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(
null), ex);
void setOnlyStores(boolean onlyStores)
Set< RelatedStoreDefinition > getRelatedStoreDefinitions()
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)