18 package org.turro.financials.account;
20 import org.turro.financials.entity.MajorAccount;
21 import org.turro.zkoss.grid.EditableGrid;
22 import org.zkoss.zul.Detail;
23 import org.zkoss.zul.Row;
24 import org.zkoss.zul.Vbox;
35 addComponents(row, grid, level);
38 private void addComponents(Row row,
EditableGrid grid,
int level) {
39 Vbox vbox =
new Vbox();
40 vbox.setWidth(
"100%");
41 vbox.setStyle(
"padding:5px");
48 vbox.appendChild(majorGrid);
52 void rowChanged(Row row) {
53 if(majorGrid !=
null) {
54 MajorAccount department = (MajorAccount) row.getValue();
55 department.getDescendants().clear();
56 department.getDescendants().addAll(majorGrid.
getValues());
MajorDetail(Row row, EditableGrid grid, int level)
void setDependingRow(Row dependingRow)
void setAllowDeletions(boolean allowDeletions)
void setAllowInsertions(boolean allowInsertions)
boolean isAllowInsertions()
boolean isAllowDeletions()
void setReadOnly(boolean readOnly)