/** Returns the label of the {@link Listcell} it contains, or null * if no such cell. */ public String getLabel() { final Listcell cell = (Listcell) getFirstChild(); return cell != null ? cell.getLabel() : null; }
/** Returns the image of the {@link Listcell} it contains. */ public String getImage() { final Listcell cell = (Listcell) getFirstChild(); return cell != null ? cell.getImage() : null; }
private Listcell autoFirstCell() { Listcell cell = (Listcell) getFirstChild(); if (cell == null) { cell = new Listcell(); cell.applyProperties(); cell.setParent(this); } return cell; }
/** * 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); } }
final Listcell cell = (Listcell) item.getFirstChild(); if (!(_renderer instanceof ListitemRendererExt) || (((ListitemRendererExt) _renderer).getControls() & ListitemRendererExt.DETACH_ON_RENDER) != 0) { // detach