The simple roster shown in this example shows the user the roster item's type, JID, display name, groups the item belongs to and type specific properties.
If the item (entity) is a contact an additional remove action is shown.
Instructions for using this example:
- Click the "Connect" button to connect the client to the server.
- Observe the roster being populated after connection.
- Select "Show Contacts Only" to see filtering in action.
- Click the "Add a Contact" button to be prompted for a username to subscribe to.
- When possible, click the "X" in the far right field of the roster to remove, or unsubscribe, from a contact.
|