/** * Returns the selected institution, if any. * * @return An institution object. May be null. */ private Organization getSelectedOrganization() { Listitem item = j_domain.getSelectedItem(); return item == null ? null : (Organization) item.getValue(); }
private PatientListItem getItem(Listbox lb) { return getItem(lb.getSelectedItem()); }
protected Encounter getSelectedEncounter(Listbox lb) { Listitem item = lb.getSelectedItem(); return item == null ? null : (Encounter) item.getValue(); }
/** * Returns the recipient selected in the specified list, or null if no selection. * * @param lst A list box. * @return The selected recipient, or null if no selection. */ private Recipient getSelected(Listbox lst) { Listitem selItem = lst == null ? null : lst.getSelectedItem(); return selItem == null ? null : (Recipient) selItem.getValue(); }
/** * Returns the currently selected notification. * * @return The currently selected notification. */ private ScheduledNotification getSelected() { return (ScheduledNotification) lstScheduled.getSelectedItem().getValue(); }
/** * Returns the selected security domain, if any. * * @return An ISecurityDomain object. May be null. */ protected ISecurityDomain getSelectedSecurityDomain() { Listitem item = lstDomain.getSelectedItem(); return item == null ? null : (ISecurityDomain) item.getValue(); }
private Practitioner getSelectedProvider(Listbox lb) { Listitem item = lb.getSelectedItem(); return item == null ? null : (Practitioner) item.getValue(); }
private AbstractPatientListFilter getFilter(Listbox lb) { return getFilter(lb.getSelectedItem()); }
private Participant getSelectedParticipant(Listbox lb) { Listitem item = lb.getSelectedItem(); return item == null ? null : (Participant) item.getValue(); }
private Encounter getEncounter(Listbox lb) { Listitem item = lb.getSelectedItem(); return item == null ? null : (Encounter) item.getValue(); }
public void onClick$btnSelect() { Listitem item = lbResults.getSelectedItem(); if (item == null) { return; } result = (String) item.getValue(); close(false); }
@Override protected boolean isComplete() { return lstLocation.getSelectedItem() != null && cboServiceCategory.getSelectedItem() != null && datEncounter.getDate() != null; }
private TestItem getSelectedTest() { Listitem item = lbTests.getSelectedItem(); if (item != null) { lbTests.renderItem(item); return (TestItem) item.getValue(); } else { return null; } }
/** * Double-clicking a list item adds it to the info panel. */ public void onDoubleClick$listbox() { pushDrop(listbox.getSelectedItem()); }
/** * Update controls to reflect the current selection state. */ private void updateControls() { btnModify.setDisabled(lstScheduled.getSelectedItem() == null); btnDelete.setDisabled(btnModify.isDisabled()); }
/** * Change the location context to the selected location and close the dialog. */ public void onClick$btnOK() { Listitem item = lstLocation.getSelectedItem(); Location location = item == null ? null : (Location) item.getValue(); if (location != null) { LocationContext.changeLocation(location); close(); } }
/** * Change the location context to the selected location and close the dialog. */ public void onClick$btnOK() { Listitem item = lstLocation.getSelectedItem(); Location location = item == null ? null : (Location) item.getValue(); if (location != null) { LocationContext.changeLocation(location); close(); } }
public void onClick$btnManagedListFilterDelete() { AbstractPatientListFilter filter = managedList.getActiveFilter(); if (filter != null && PromptDialog.confirm(txtDeleteFilterPrompt, MessageFormat.format(txtDeleteFilterTitle, filter.getName()))) { filterManager.removeFilter(filter); lstManagedListFilter.getSelectedItem().detach(); setManagedListFilter(null); } }
public void onClick$lstAllergies() { Listitem item = lstAllergies.getSelectedItem(); if (item != null) { lstAllergies.clearSelection(); String s = item.getValue(); List<String> lst = broker.callRPCList("RGCWARCV DETAIL", null, patientId, StrUtil.piece(s, U)); ReportBox.modal(lst, code2Text('A'), allowPrint); } }
public void onClick$btnSendEvent() { Listitem item = actions.getSelectedItem(); if (item != null) { Action action = Action.valueOf(item.getLabel()); EventManager.getInstance().fireLocalEvent(getEvent(action), action); } }