18 package org.turro.financials.model;
21 import org.turro.financials.entity.DocumentWorkflow;
22 import org.turro.financials.menu.FinancialsMenu;
23 import org.turro.zkoss.grid.PagingGrid;
24 import org.zkoss.zk.ui.event.Event;
25 import org.zkoss.zk.ui.event.EventListener;
26 import org.zkoss.zk.ui.event.Events;
27 import org.zkoss.zul.Hbox;
28 import org.zkoss.zul.Image;
29 import org.zkoss.zul.Label;
30 import org.zkoss.zul.Row;
31 import org.zkoss.zul.Rows;
39 private Set<DocumentWorkflow> documentWorkflows;
42 this.documentWorkflows = documentWorkflows;
43 setSizedByContent(
true);
48 private void addRows() {
49 Rows rows =
new Rows();
54 rows.appendChild(row);
56 Hbox hbox =
new Hbox();
57 hbox.setSpacing(
"20px");
58 Label l =
new Label(dwf.getAncestor().getName());
59 l.setStyle(
"cursor:pointer");
60 l.addEventListener(Events.ON_CLICK,
new EventListener() {
62 public void onEvent(Event event)
throws Exception {
67 hbox.appendChild(
new Image(
"/_zul/images/forward.png"));
68 l =
new Label(dwf.getDescendant().getName());
69 l.setStyle(
"cursor:pointer");
70 l.addEventListener(Events.ON_CLICK,
new EventListener() {
72 public void onEvent(Event event)
throws Exception {
73 FinancialsMenu.showDocumentDefinition(dwf.getDescendant().getId());
77 row.appendChild(hbox);
DocumentWFGrid(Set< DocumentWorkflow > documentWorkflows)
void setRowCount(int rows)
void setDefaultBehavior(boolean defaultBehavior)