18 package org.turro.financials.model;
20 import org.turro.financials.entity.RelatedDocument;
21 import org.turro.financials.menu.FinancialsMenu;
22 import org.zkoss.zk.ui.event.Event;
23 import org.zkoss.zk.ui.event.EventListener;
24 import org.zkoss.zk.ui.event.Events;
25 import org.zkoss.zul.Cell;
26 import org.zkoss.zul.Detail;
27 import org.zkoss.zul.Hbox;
28 import org.zkoss.zul.Hlayout;
29 import org.zkoss.zul.Image;
30 import org.zkoss.zul.Label;
31 import org.zkoss.zul.Row;
42 this.relatedDocument = relatedDocument;
46 private void addCells() {
48 Hlayout hbox =
new Hlayout();
49 hbox.setSpacing(
"20px");
51 l.setStyle(
"cursor:pointer");
52 l.addEventListener(Events.ON_CLICK,
new EventListener() {
54 public void onEvent(Event event)
throws Exception {
60 hbox.appendChild(
new Image(
"/_zul/images/ok.png"));
62 hbox.appendChild(
new Image(
"/_zul/images/cancel.png"));
65 hbox.appendChild(
new Image(
"/_zul/images/auto_num.png"));
70 private void addDetail() {
71 Detail detail =
new Detail();
74 Hbox hbox =
new Hbox();
76 Cell cell =
new Cell();
79 hbox.appendChild(cell);
83 hbox.appendChild(cell);
87 hbox.appendChild(cell);
88 detail.appendChild(hbox);
Set< RelatedStoreDefinition > getRelatedStoreDefinitions()
Set< RelatedLineType > getRelatedLineTypes()
Set< RelatedColumn > getDocumentColumns()