public interface ContactItemHandler
ContactItem
within a users presence changes or the item is double clicked.Modifier and Type | Method and Description |
---|---|
javax.swing.Icon |
getIcon(java.lang.String jid)
Return the icon used for particular presence.
|
javax.swing.Icon |
getTabIcon(org.jivesoftware.smack.packet.Presence presence)
Return the icon to use on the chat room tab.
|
boolean |
handleDoubleClick(ContactItem item)
The
ContactItem has been double-clicked by the user. |
boolean |
handlePresence(ContactItem item,
org.jivesoftware.smack.packet.Presence presence)
The users presence has been changed.
|
boolean handlePresence(ContactItem item, org.jivesoftware.smack.packet.Presence presence)
item
- the contact item.presence
- the users new presence.javax.swing.Icon getIcon(java.lang.String jid)
jid
- the users jid.javax.swing.Icon getTabIcon(org.jivesoftware.smack.packet.Presence presence)
presence
- the presence of the user.boolean handleDoubleClick(ContactItem item)
ContactItem
has been double-clicked by the user.item
- the ContactItem to handle.