@Override public Patient select() { Events.sendEvent("onShow", dlg, null); return (Patient) dlg.getAttribute(Constants.SELECTED_PATIENT_ATTRIB); } };
/** * 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"); }
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 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"); }