18 package org.turro.contacts.zul.proposal;
20 import org.turro.contacts.Contact;
21 import org.turro.contacts.proposal.ContactProposal;
22 import org.turro.contacts.proposal.GenericAttribute;
23 import org.zkoss.zk.ui.Component;
24 import org.zkoss.zul.Column;
25 import org.zkoss.zul.Columns;
26 import org.zkoss.zul.Grid;
27 import org.zkoss.zul.Rows;
39 Columns cols =
new Columns();
40 cols.setSizable(
true);
41 cols.setMenupopup(
"auto");
48 cols.appendChild(col);
51 cols.appendChild(col);
68 this.proposal = proposal;
73 if(proposal !=
null) {
79 private void updateRows() {
84 rows.getChildren().clear();
86 if(proposal ==
null)
return;
88 rows.appendChild(
new ProposalRow(ga));
90 for(Component pr : rows.getChildren()) {
91 ((ProposalRow)pr).updateContent();