}
final Object element = _displayables.elementAt(index);
if (element instanceof SearchableEntity) {
final SearchableEntity item = (SearchableEntity) element;
final int rowHeight = listField.getRowHeight();
// Paint icon for this item/searchable
Image image = item.getIcon();
if (image == null) {
image = item.getSearchable().getIcon();
}
if (image != null) {
// Paint icon with equal height and width
image.paint(graphics, 3, y - y % rowHeight, rowHeight,
rowHeight);
}
// Build up display text
final StringBuffer buffer = new StringBuffer();
final String title = item.getTitle();
final String summary = item.getSummary();
final boolean equal = title.equals(summary);
if (title != null) {
buffer.append(title);
if (summary != null && summary.length() != 0 && !equal) {
buffer.append(", ");