|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ContactItemHandler
The ContactItemHandler allows users to customize the actions that take place within
a ContactItem
within a users presence changes or the item is double clicked.
Method Summary | |
---|---|
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. |
Method Detail |
---|
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |