18 package org.turro.financials.model;
21 import org.turro.elephant.util.DecimalFormats;
22 import org.turro.financials.entity.LineTypeAccount;
23 import org.turro.financials.entity.RelatedLineType;
24 import org.turro.zkoss.grid.PagingGrid;
25 import org.turro.zkoss.label.LabelTypes;
26 import org.zkoss.zul.Hlayout;
27 import org.zkoss.zul.Image;
28 import org.zkoss.zul.Label;
29 import org.zkoss.zul.Row;
30 import org.zkoss.zul.Rows;
31 import org.zkoss.zul.Vlayout;
39 private Set<RelatedLineType> relatedLineTypes;
42 this.relatedLineTypes = relatedLineTypes;
43 setSizedByContent(
true);
48 private void addRows() {
49 Rows rows =
new Rows();
54 rows.appendChild(row);
56 Vlayout vbox =
new Vlayout();
57 row.appendChild(vbox);
59 Hlayout hbox =
new Hlayout();
60 hbox.setSpacing(
"20px");
61 hbox.appendChild(
new Label(rlt.getLineType().getName()));
63 if(rlt.isDefaultLineType()) {
64 hbox.appendChild(
new Image(
"/_zul/images/ok.png"));
66 vbox.appendChild(hbox);
68 for(LineTypeAccount lta : rlt.getLineType().getLineTypeAccounts()) {
69 vbox.appendChild(LabelTypes.getSoftLabel(lta.getDescription()));
void setRowCount(int rows)
void setDefaultBehavior(boolean defaultBehavior)