19 package org.turro.zkoss.dialog;
21 import java.util.ArrayList;
22 import java.util.List;
24 import java.util.function.Consumer;
25 import org.turro.zul.frame.Framework;
26 import org.zkoss.zk.ui.HtmlBasedComponent;
27 import org.zkoss.zk.ui.event.Event;
28 import org.zkoss.zk.ui.event.EventListener;
29 import org.zkoss.zk.ui.event.Events;
30 import org.zkoss.zk.ui.ext.AfterCompose;
31 import org.zkoss.zul.Div;
32 import org.zkoss.zul.Include;
33 import org.zkoss.zul.Popup;
34 import org.zkoss.zul.Space;
42 private final List<HtmlBasedComponent> components;
55 setStyle(
"overflow-y:auto");
61 EventListener el = (EventListener) (Event event) -> {
65 addEventListener(Events.ON_CLOSE, el);
71 components.add(
new Space());
76 components.add(component);
81 Include include =
new Include(
"/WEB-INF/_zul" + uri);
83 args.forEach((k, v) -> include.setDynamicProperty((String) k, v));
86 components.add(include);
93 popup.appendChild(
this);
105 components =
new ArrayList<>();
110 private void createComponents() {
111 components.forEach(component -> {
112 appendChild(component);
113 if(component instanceof AfterCompose) {
114 ((AfterCompose) component).afterCompose();
static Framework getCurrent()