18 package org.turro.financials.linetype;
20 import org.turro.string.Strings;
21 import org.turro.financials.db.FinancialsPU;
22 import org.turro.financials.entity.LineType;
23 import org.turro.jpa.grid.JpaGrid;
24 import org.zkoss.zul.Detail;
25 import org.zkoss.zul.Row;
26 import org.zkoss.zul.Vbox;
36 "select lineType from LineType as lineType " +
37 "order by lineType.name",
true);
42 if(value ==
null) value =
new LineType();
49 return !Strings.isBlank(v.
getName());
58 super.rowChanged(row);
61 private void addDetail(Row row) {
62 row.getChildren().clear();
63 Detail detail =
new Detail();
64 row.appendChild(detail);
65 Vbox vbox =
new Vbox();
66 vbox.setWidth(
"100%");
67 vbox.setStyle(
"padding:5px");
68 detail.appendChild(vbox);
74 vbox.appendChild(ltag);
Set< LineTypeAccount > getLineTypeAccounts()
void initiateRow(Row row, LineType value)
boolean isValid(LineType v)
void setDependingRow(Row dependingRow)
void setAllowDeletions(boolean allowDeletions)
void setAllowInsertions(boolean allowInsertions)
boolean isAllowInsertions()
boolean isAllowDeletions()
void setReadOnly(boolean readOnly)