18 package org.turro.financials.contract;
20 import org.turro.string.Strings;
21 import org.turro.financials.entity.ContractDefinition;
22 import org.turro.financials.entity.ContractPreference;
23 import org.turro.i18n.I_;
24 import org.turro.zkoss.grid.CollectionGrid;
25 import org.zkoss.zk.ui.ext.AfterCompose;
26 import org.zkoss.zul.Row;
47 return contractDefinition;
51 this.contractDefinition = documentDefinition;
57 return !Strings.isBlank(v.
getName()) &&
77 private void addColumns() {
79 "name",
null, 0,
false,
false).setWidth(
"40%");
81 "asOperating",
null, 0,
false,
false).setWidth(
"20%");
83 "asTax",
null, 0,
false,
false).setWidth(
"20%");
85 "asRetention",
null, 0,
false,
false).setWidth(
"20%");
ContractPreferencesGrid()
void initiateRow(Row row, ContractPreference value)
ContractPreferencesGrid(ContractDefinition contractDefinition)
boolean isValid(ContractPreference v)
boolean deleteRow(Row row)
void setContractDefinition(ContractDefinition documentDefinition)
ContractDefinition getContractDefinition()
Set< ContractPreference > getContractPreferences()
void setContractDefinition(ContractDefinition contractDefinition)
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)