/** * Displays the dialog amodally. * * @param text The text or HTML content. HTML content is indicated by prefixing with the html * tag. * @param title Dialog title. * @param allowPrint If true, a print button is provided. * @return The created window. */ public static Window showReport(String text, String title, boolean allowPrint) { return ReportDialog.show(text, title, allowPrint, false, null); }
/** * Displays the dialog modally. * * @param text The text or HTML content. HTML content is indicated by prefixing with the html * tag. * @param title Dialog title. * @param allowPrint If true, a print button is provided. * @param callback Callback when dialog is closed. * @return The created window. */ public static Window showReport(String text, String title, boolean allowPrint, IEventListener callback) { return ReportDialog.show(text, title, allowPrint, true, callback); }