@Override protected void renderItem(Listitem item, AntiCoagRecord record) { super.renderItem(item, record); item.addForward(Events.ON_DOUBLE_CLICK, btnEdit, Events.ON_CLICK); }
@Override protected void renderItem(Listitem item, Recipient recipient) { item.addForward(Events.ON_DOUBLE_CLICK, doubleClickTarget, Events.ON_CLICK); item.setLabel(recipient.getName()); } };
item.addForward(Events.ON_DOUBLE_CLICK, btnSelect, Events.ON_CLICK); lbResults.appendChild(item); String pcs[] = s.split("\\^");
/** * Adds the service location to the specified listbox. * * @param location Service location to add. * @param lstLocation Listbox to receive the location. * @return The added list item. */ public static Listitem locationAdd(Location location, Listbox lstLocation) { Listitem item = new Listitem(location.getName()); item.setValue(location); //item.setTooltiptext(location.getDescription()); item.addForward(Events.ON_DOUBLE_CLICK, "btnOK", Events.ON_CLICK); lstLocation.appendChild(item); lstLocation.setDisabled(false); return item; }
@Override public void renderItem(Listitem item, Object data) { Practitioner provider = data instanceof Practitioner ? (Practitioner) data : ProviderUtil.fetchProvider(StrUtil .piece((String) data, StrUtil.U)); item.setValue(provider); createCell(item, provider.getName()); Practitioner primaryProvider = encounterProvider.getPrimaryProvider(); item.setSclass(primaryProvider == null || !provider.equals(primaryProvider) ? null : Constants.SCLASS_PRIMARY); item.addForward(Events.ON_DOUBLE_CLICK, item.getListbox(), null); }
/** * Adds the service location to the specified listbox. * * @param location Service location to add. * @param lstLocation Listbox to receive the location. * @return The added list item. */ public static Listitem locationAdd(Location location, Listbox lstLocation) { Listitem item = new Listitem(location.getName().getValue()); item.setValue(location); //item.setTooltiptext(location.getDescription()); item.addForward(Events.ON_DOUBLE_CLICK, "btnOK", Events.ON_CLICK); lstLocation.appendChild(item); lstLocation.setDisabled(false); return item; }
/** * Render the list item for the specified document. * * @param item List item to render. * @param doc The document associated with the list item. */ @Override public void renderItem(Listitem item, Document doc) { log.trace("item render"); item.setCheckable(true); item.addForward(Events.ON_DOUBLE_CLICK, item.getListbox(), Events.ON_DOUBLE_CLICK); addCell(item, ""); addCell(item, doc.getDateTime()); addCell(item, doc.getTitle()); addCell(item, doc.getLocationName()); addCell(item, doc.getAuthorName()); }
@Override protected void renderItem(Listitem item, ScheduledNotification notification) { createCell(item, null).setImage(PriorityRenderer.getImage(notification.getPriority())); createCell(item, notification.getDeliveryDate()); createCell(item, notification.getPatientName()); createCell(item, notification.getSubject()); item.addForward(Events.ON_DOUBLE_CLICK, btnModify, Events.ON_CLICK); } };
@Override public void renderItem(Listitem item, Object data) { Participant participant; if (data instanceof Participant) { participant = (Participant) data; } else if (data instanceof IResource) { participant = new Participant(); participant.setIndividual(new ResourceReferenceDt((IResource) data)); } else { return; } item.setValue(participant); createCell(item, FhirUtil.formatName(EncounterUtil.getName(participant))); item.setSclass(isPrimary(participant) ? Constants.SCLASS_PRIMARY : null); item.addForward(Events.ON_DOUBLE_CLICK, item.getListbox(), null); }
@Override public void renderItem(Listitem item, Object data) { Encounter encounter = data instanceof Encounter ? (Encounter) data : parse((String) data); item.setValue(encounter); item.addForward(Events.ON_DOUBLE_CLICK, item.getListbox(), null); item.setImage(EncounterUtil.isLocked(encounter) ? Constants.ICON_LOCKED : null); createCell(item, encounter.getLocation()); createCell(item, encounter.getPeriod()); createCell(item, encounter.getType()); }
/** * Populate list box with some draggable items. */ @Override public void doAfterCompose(Component comp) throws Exception { super.doAfterCompose(comp); while (itemCount < 11) { Listitem item = newListitem(itemCount % 2 == 1); item.addForward(Events.ON_DOUBLE_CLICK, listbox, null); listbox.appendChild(item); } infoPanel = (IInfoPanel) getController(include.getFellow("infoPanelRoot")); eventManager = EventManager.getInstance(); }
@Override protected void renderItem(Listitem item, Notification notification) { createCell(item, null); createCell(item, null).setImage(PriorityRenderer.getImage(notification.getPriority())); createCell(item, null).setImage(notification.isActionable() ? ICON_ACTIONABLE : ICON_INFO); createCell(item, notification.getPatientName()); createCell(item, notification.getSubject()); createCell(item, notification.getDeliveryDate()); item.setDisabled(isProcessing); service.getNotificationMessage(notification); item.setTooltiptext(notification.getDisplayText()); item.addForward(Events.ON_DOUBLE_CLICK, item.getListbox(), "onProcessItem"); } };
@Override public void renderItem(Listitem item, Object data) { Encounter encounter = data instanceof Encounter ? (Encounter) data : parse((String) data); item.setValue(encounter); item.addForward(Events.ON_DOUBLE_CLICK, item.getListbox(), null); Span span = new Span(); span.setSclass(EncounterUtil.isLocked(encounter) ? Constants.SCLASS_LOCKED : null); createCell(item, span); Location location = ClientUtil.getResource(encounter.getLocationFirstRep().getLocation(), Location.class); createCell(item, location == null ? null : location.getName()); createCell(item, encounter.getPeriod().getStart()); createCell(item, encounter.getTypeFirstRep().getCodingFirstRep().getDisplay()); }
Listitem item = lstLocation.appendItem(pcs[1], pcs[0]); item.setAttribute("sc", pcs[2]); item.addForward(Events.ON_DOUBLE_CLICK, btnOK, Events.ON_CLICK);