private void updateContactItem(ContactItem contactItem) { contactItem.updateAvatarInSideIcon(); }
/** * Sets the current presence on this contact item. * * @param presence the presence. */ public void setPresence(Presence presence) { this.presence = presence; final VCardUpdateExtension extension = presence.getExtension("x", "vcard-temp:x:update"); // Handle vCard update packet. if (extension != null) { String hash = extension.getPhotoHash(); if (hash != null) { this.hash = hash; if (!hashExists(hash)) { updateAvatar(); updateAvatarInSideIcon(); } } } updatePresenceIcon(presence); }
changeContactItem.setAvailable(true); changeContactItem.setPresence(presence); changeContactItem.updateAvatarInSideIcon(); changeContactItem.showUserComingOnline(); changeContactItem.setSpecialIcon(offlineItem.getSpecialImageLabel().getIcon()); changeContact.setPresence(staticItemPrecense); changeContact.setAvailable(true); changeContact.updateAvatarInSideIcon(); changeContact.showUserComingOnline(); changeContact.setSpecialIcon(offlineItem.getSpecialImageLabel().getIcon());