18 package org.turro.financials.contract;
20 import org.turro.string.Strings;
21 import org.turro.action.Contacts;
22 import org.turro.contacts.Contact;
23 import org.turro.contacts.util.ContactCombobox;
24 import org.turro.financials.entity.Contract;
25 import org.turro.financials.entity.ContractInterventionType;
26 import org.turro.financials.entity.ContractParticipant;
27 import org.turro.i18n.I_;
28 import org.turro.jpa.entity.EntityCollections;
29 import org.turro.plugin.contacts.IContact;
30 import org.turro.zkoss.grid.CollectionGrid;
31 import org.turro.zkoss.grid.EditableCell;
32 import org.zkoss.zk.ui.HtmlBasedComponent;
33 import org.zkoss.zk.ui.ext.AfterCompose;
34 import org.zkoss.zul.Row;
50 this.contract = contract;
55 this.contract = contract;
93 cit.setMold(
"select");
97 return super.createEditor(editableCell);
111 return I_.
byKey(cit.toString());
115 return super.formatCell(editableCell, value);
121 HtmlBasedComponent hbc = (HtmlBasedComponent) editableCell.
getEditor();
134 return super.getEditorValue(editableCell);
137 private void addColumns() {
138 addColumn(
I_.
get(
"Contact"), String.class,
"idContact",
null, 0,
false,
false).setHflex(
"3");
void setContract(Contract contract)
ContractParticipantGrid(Contract contract)
void initiateRow(Row row, ContractParticipant value)
boolean deleteRow(Row row)
ContractParticipantGrid()
HtmlBasedComponent createEditor(EditableCell editableCell)
String formatCell(EditableCell editableCell, Object value)
boolean isValid(ContractParticipant v)
Object getEditorValue(EditableCell editableCell)
void setContract(Contract contract)
Set< ContractParticipant > getParticipants()
static String byKey(String key)
static String get(String msg)
static EntityCollections entities(Collection values)
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)