@Override public void doRun() { staticItem.updatePresenceIcon(staticItem.getPresence()); staticGroup.fireContactGroupUpdated(); } }, timeToRun);
/** * Sets the default settings for a ContactItem. * * @param jid the users jid. */ public void useDefaults(Jid jid) { for (ContactGroup group : getContactGroups()) { ContactItem item = group.getContactItemByJID(jid.asBareJid()); if (item != null) { item.updatePresenceIcon(item.getPresence()); group.fireContactGroupUpdated(); } } }
/** * 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); }
changeContact.showUserComingOnline(); changeContact.setSpecialIcon(offlineItem.getSpecialImageLabel().getIcon()); changeContact.updatePresenceIcon(changeContact.getPresence()); toggleGroupVisibility(staticContactGroup.getGroupName(), true); staticContactGroup.fireContactGroupUpdated(); contactItem.setAvailable(true); unfiledGrp.addContactItem(contactItem); contactItem.updatePresenceIcon(contactItem.getPresence()); unfiledGrp.fireContactGroupUpdated();