/** * Display the location selection dialog. */ static public void execute() { PopupDialog.popup(Constants.RESOURCE_PREFIX + "locationSelection.zul"); }
public void onTest() throws Exception { PopupDialog popup = new PopupDialog(null, "Test Popup"); setSizable(false); ZKUtil.loadZulPage(ZKUtil.getResourcePath(PopupTest.class) + "testPopup2.zul", popup); popup.addForward("onTest", this, null); popup.show(); } }
/** * Show the popup dialog, populating it with detail information for the specified data object. */ @Override public void show() { addRows(); if (debug) { debugObject(dataObject, false); } if (grid.getRows().getChildren().size() > 20) { grid.setHeight("600px"); } super.show(); }
/** * Display the location selection dialog. */ static public void execute() { PopupDialog.popup(Constants.RESOURCE_PREFIX + "locationSelection.zul"); }
/** * Displays the scheduling controller modally. */ public static void show() { PopupDialog.popup(DIALOG, true, false); }
public static void show(boolean allowPrint) { Map<Object, Object> args = new HashMap<Object, Object>(); args.put("allowPrint", allowPrint); PopupDialog.popup(DIALOG, args, true, true, true); }
/** * Create an amodal instance of the viewer dialog. * * @param actionListener Listener to respond to viewer action events. * @return The controller associated with the viewer dialog. */ protected static ViewerController create(EventListener<ActionEvent> actionListener) { Window dlg = PopupDialog.popup(DIALOG, false, false, false); ViewerController infoOnlyController = (ViewerController) FrameworkController.getController(dlg); infoOnlyController.actionListener = actionListener; return infoOnlyController; }
public static SelectedTerm execute(String... subsets) { Map<Object, Object> args = new HashMap<>(); args.put("subsets", subsets); Component root = PopupDialog.popup(DIALOG, args, false, false, true); LookupSCTController controller = (LookupSCTController) FrameworkController.getController(root); return controller.selectedTerm; }
/** * Creates an amodal instance of the processing dialog. * * @param mainController The requesting controller. * @return The controller associated with the newly created dialog. */ protected static ProcessingController create(MainController mainController) { Window dlg = PopupDialog.popup(DIALOG, false, false, false); ProcessingController controller = (ProcessingController) FrameworkController.getController(dlg); controller.mainController = mainController; return controller; }
public static String execute() { Window dlg = PopupDialog.popup(DIALOG); AddNoteController controller = (AddNoteController) FrameworkController.getController(dlg); return controller.result; }
public static boolean show(AntiCoagRecord record) { Map<Object, Object> args = new HashMap<Object, Object>(); args.put("record", record); return PopupDialog.popup(DIALOG, args, false, false, true).hasAttribute(ATTR_OK); }
public static AntiCoagRecord show(AntiCoagRecord record) { Map<Object, Object> args = new HashMap<Object, Object>(); args.put("record", record); return (AntiCoagRecord) PopupDialog.popup(DIALOG, args, false, false, true).getAttribute(ATTR_RESULT); }
/** * Display the scheduled notification dialog modally. * * @param notification The scheduled notification to be modified. Specify null to create a new * scheduled notification. * @return The modified or new scheduled notification, or null if the dialog was cancelled. */ public static ScheduledNotification show(ScheduledNotification notification) { Map<Object, Object> args = new HashMap<Object, Object>(); args.put("notification", notification); Window dlg = PopupDialog.popup(DIALOG, args, true, false, true); return (ScheduledNotification) dlg.getAttribute("notification"); }
/** * Display the dialog modally. * * @param recipients Recipient list to update. * @param showComment If true, display the comment input element. If false, hide it. * @return The value returned by the dialog or null if the dialog was cancelled. */ private static Object show(Collection<Recipient> recipients, boolean showComment) { Map<Object, Object> args = new HashMap<Object, Object>(); args.put("recipients", recipients); args.put("showComment", showComment); return PopupDialog.popup(DIALOG, args, false, false, true).getAttribute("ok"); }
/** * Form invokable via direct call. */ public static void show() { if (PopupDialog.popup(DIALOG_CHANGE_PASSWORD, false, false) == null) { PromptDialog.showError(Labels.getLabel("change.password.dialog.unavailable")); } }
protected static String execute(Table refTable, String searchText, boolean autoReturn, String screen, LookupController controller) { Params args = BgoUtil.packageParams(refTable, searchText, autoReturn, screen); args.put("controller", controller); if (controller.mode != null) { args.put(controller.mode, true); } PopupDialog.popup(DIALOG, args, false, false, true); return controller.canceled() ? null : controller.result; }
public static TestItem execute(TestItem test) { if (test == null && !EncounterUtil.ensureEncounter()) { return null; } Params params = new Params(test); Window dlg = PopupDialog.popup(DIALOG, params, true, true, true); AddSkinTestController controller = (AddSkinTestController) FrameworkController.getController(dlg); return controller.canceled() ? null : test; }
public static Problem execute(Problem problem) { if (problem == null) { problem = new Problem(PatientContext.getActivePatient()); } Params params = new Params(problem); Window dlg = PopupDialog.popup(DIALOG, params, true, true, true); AddProblemController controller = (AddProblemController) FrameworkController.getController(dlg); return controller.canceled() ? null : problem; }
/** * @see org.carewebframework.api.security.ISecurityService#changePassword() */ @Override public void changePassword() { if (canChangePassword()) { if (PopupDialog.popup(passwordChangeUrl, false, false) == null) { PromptDialog.showError(StrUtil.getLabel("password.change.dialog.unavailable")); } } else { PromptDialog.showWarning(StrUtil.getLabel(Constants.LBL_PASSWORD_CHANGE_UNAVAILABLE)); } }
/** * Displays the encounter selection dialog. * * @param flags The encounter flags. */ public static void execute(EncounterFlag... flags) { String resource = Constants.RESOURCE_PREFIX + "encounterSelection.zul"; Window dlg = (Window) FrameworkUtil.getAttribute(resource); if (dlg == null || dlg.getPage() == null) { dlg = PopupDialog.popup(resource, true, true, false); FrameworkUtil.setAttribute(resource, dlg); } try { EncounterSelection sel = ZKUtil.findChild(dlg, EncounterSelection.class); sel.setEncounterFlags(EncounterFlag.flags(flags)); dlg.doModal(); } catch (Exception e) { throw new RuntimeException(e); } }