private Listcell addCell(Listitem item, Object object) { Listcell cell = new Listcell(object.toString()); cell.setTooltiptext(object.toString()); item.appendChild(cell); return cell; }
public void doAfterCompose(Component comp) throws Exception { super.doAfterCompose(comp); for(int i=0;i<=10;i++){ Listitem li = new Listitem(); Listcell lic = new ListCell(); li.appendChild(lic); Button myBtn = new Button("Btn"); myBtn.setParent(lic); //... } }
li.setValue(securityDomain); lstDomain.appendChild(li); li.appendChild(new Listcell(securityDomain.getName()));
j_domain.appendChild(li); IdentifierDt abbr = FhirUtil.getIdentifier(organization.getIdentifier(), "ABBREVIATION"); li.appendChild(new Listcell(abbr == null ? organization.getName().getValue() : abbr.getValue().getValue()));
/** * 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(final Listitem item, final Document doc) { final Listcell cell = new Listcell(); item.appendChild(cell); final Div sep = new Div(); sep.setSclass("vista-documents-sep"); cell.appendChild(sep); final Div div = new Div(); div.setSclass(Constants.SCLASS_TEXT_REPORT_TITLE); cell.appendChild(div); final Hbox boxHeader = new Hbox(); final Label header = new Label(doc.getTitle()); header.setZclass(Constants.SCLASS_TEXT_REPORT_TITLE); boxHeader.appendChild(header); div.appendChild(boxHeader); Label body = new Label(doc.getBody()); body.setMultiline(true); body.setPre(true); cell.appendChild(body); }