// add all the contacts
for (final RosterItem rosterItem : items) {
ContactItemView contact = new ContactItemView(rosterItem);
contacts.add(contact);
contact.setButtonHandler(new ContactButtonHandler() {
public void handleShow(int top, ContactItemView contact) {
// make sure to remove the selected state. Mouseout is not
// always captured
if (lastSelected != null) {