/** * Opens any arbitrary page in a modal window. * * @param fspPage Url of page. * @return Reference to the opened window, if successful. */ public static Window popup(String fspPage) { return popup(fspPage, true, true, true); }
/** * Can be used to popup any page as a modal dialog. * * @param fspPage Url of page. * @param closable If true, window closure button appears. * @param sizable If true, window sizing grips appear. * @return Reference to the opened window, if successful. */ public static Window popup(String fspPage, boolean closable, boolean sizable) { return popup(fspPage, closable, sizable, true); }
/** * Demonstration Configuration Helper Class. */ public static void show() { DialogUtil.popup("web/org/hspconsortium/cwf/plugin/scenario/scenarioManagerWin.fsp", true, true, true); }
/** * Returns an instance of the layout manager. If the layout manager is open, returns that * instance. If not and autoCreate is true, creates a new one. * * @param autoCreate If true and dialog does not exist, it is created. * @return The layout manager. */ private static Window getInstance(boolean autoCreate) { Page page = ExecutionContext.getPage(); Window dlg = page.getAttribute(DIALOG, Window.class); if (autoCreate && dlg == null) { dlg = DialogUtil.popup(DIALOG, true, true, false); page.setAttribute(DIALOG, dlg); } return dlg; }