19 package org.turro.zkoss.dialog;
21 import org.turro.elephant.zkoss.Modal;
22 import org.turro.i18n.I_;
23 import org.turro.zul.frame.Framework;
24 import org.zkoss.zul.Html;
25 import org.zkoss.zul.Style;
26 import org.zkoss.zul.Window;
38 html.setContent(publication);
41 private void addDefaults() {
42 appendChild(
new Style(
"/_internal/css/default.css"));
43 appendChild(
new Style(
"/_internal/css/default-site.css"));
45 html.setWidth(
"100%");
46 html.setHeight(
"100%");
48 setContentStyle(
"overflow:auto");
51 public static void preview(String html)
throws InterruptedException {
55 ph.setPage(frame.getPage());
57 ph.setBorder(
"normal");
58 ph.setTitle(
I_.
get(
"Preview"));
61 ph.setMaximizable(
true);
63 ph.setHeight(
"600px");
65 ph.setMaximized(
false);
static int doModal(String file)
static String get(String msg)
static void preview(String html)
void setPublication(String publication)
static Framework getCurrent()