/** * Opens the window as a popup. */ public void popup() { popup(null); }
/** * Displays the dialog. * * @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 asModal If true, open as modal; otherwise, as popup. * @param callback Callback when dialog is closed. * @return The created dialog. */ public static Window show(String text, String title, boolean allowPrint, boolean asModal, IEventListener callback) { Map<String, Object> args = new HashMap<>(); args.put("text", text); args.put("title", title); args.put("allowPrint", allowPrint); Window dialog = PopupDialog.show(DialogConstants.RESOURCE_PREFIX + "reportDialog.fsp", args, true, true, false, null); if (asModal) { dialog.modal(callback); } else { dialog.popup(callback); } return dialog; }
/** * Display the Layout Manager dialog * * @param rootElement The root UI element. */ public static void execute(ElementBase rootElement) { Window dlg = getInstance(true); dlg.getAttribute("controller", LayoutDesigner.class).init(rootElement); dlg.popup(null); }
private void initSession() { sessionService = SessionService.create(chatService.getSelf(), sessionId, getEventManager(), this); sessionService.setActive(true); window.popup(null); }
/** * @see org.carewebframework.help.IHelpViewer#show() */ @Override public void show() { lblLoading.setVisible(false); tvNavigator.setVisible(true); if (mode == HelpViewerMode.EMBEDDED) { root.setHeight(lastHeight + "px"); root.setWidth(lastWidth + "px"); root.setSize(Size.NORMAL); root.popup(null); } else { ClientUtil.invoke("window.focus"); } }