/** * Places the highlight indicator next to the specified notification. If the notification is not * found or is null, the indicator is hidden. * * @param notification Notification to highlight. */ protected void highlightNotification(Notification notification) { int i = notification == null ? -1 : model.indexOf(notification); if (i >= 0) { Listitem item = lstNotification.getItemAtIndex(i); imgIndicator.setParent(item.getFirstChild()); imgIndicator.setVisible(true); Clients.scrollIntoView(item); } else { imgIndicator.setVisible(false); } }
lblProvider.setValue(null); lblServiceCategory.setValue(null); imgLocked.setVisible(false); } else { String text = encounter.getLocation().isEmpty() ? "" : FhirUtil.getLast(encounter.getLocation()).toString(); lblProvider.setValue(provider == null ? null : provider.getName().toString()); lblServiceCategory.setValue(encounter.getType().toString()); imgLocked.setVisible(EncounterUtil.isLocked(encounter));
private void refreshForm() { modified = false; noValidate = true; tbar.setVisible(encounter != null); panelchildren.setVisible(encounter != null); if (encounter == null) { return; } imgLocked.setVisible(encounter != null && encounter.getStatusElement().getValueAsEnum() == EncounterStateEnum.FINISHED); btnNew.setDisabled(!imgLocked.isVisible()); btnCancel.setDisabled(btnNew.isDisabled()); btnOK.setDisabled(false); lastDateTime = lastDateTime != null ? lastDateTime : useEncounterDate ? encounter.getPeriod().getStart() : new FMDate(); loadGrid(); val = getValue(colIndex, rowIndex); moveTo(rangeCol - 1, 1); }