|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.impl.protocol.jabber.AbstractContactGroupJabberImpl
net.java.sip.communicator.impl.protocol.jabber.RootContactGroupJabberImpl
public class RootContactGroupJabberImpl
A dummy ContactGroup implementation representing the ContactList root for Jabber contact lists.
| Constructor Summary | |
|---|---|
RootContactGroupJabberImpl(ProtocolProviderServiceJabberImpl protocolProvider)
Creates a ContactGroup instance. |
|
| Method Summary | |
|---|---|
(package private) void |
addContact(ContactJabberImpl contact)
Adds the specified contact to the end of this group. |
(package private) void |
addSubGroup(ContactGroupJabberImpl group)
Adds the specified group to the end of the list of sub groups. |
boolean |
canContainSubgroups()
The ContactListRoot is the only group that can contain subgroups. |
Iterator<Contact> |
contacts()
Returns an Iterator over all contacts, member of this ContactGroup. |
int |
countContacts()
Returns the number, which is always 0, of Contact members of this ContactGroup |
int |
countSubgroups()
Returns the number of subgroups contained by this RootContactGroupImpl. |
(package private) ContactJabberImpl |
findContact(String id)
Returns the contact encapsulating with the spcieified name or null if no such contact was found. |
Contact |
getContact(String id)
Returns the Contact with the specified address or identifier. |
ContactGroup |
getGroup(int index)
Returns the subgroup with the specified index. |
ContactGroup |
getGroup(String groupName)
Returns the subgroup with the specified name. |
String |
getGroupName()
Returns the name of this group which is always ROOT_CONTACT_GROUP_NAME. |
ContactGroup |
getParentContactGroup()
Returns null as this is the root contact group. |
String |
getPersistentData()
Returns null as no persistent data is required and the group name is sufficient for restoring the contact. |
ProtocolProviderService |
getProtocolProvider()
Returns the protocol provider that this group belongs to. |
String |
getUID()
Returns a String that uniquely represnets the group. |
boolean |
isPersistent()
Determines whether or not this contact group is being stored by the server. |
boolean |
isResolved()
Determines whether or not this group has been resolved against the server. |
(package private) void |
removeContact(ContactJabberImpl contact)
Removes the specified contact from this contact group |
(package private) void |
removeSubGroup(ContactGroupJabberImpl group)
Removes the specified from the list of sub groups |
(package private) void |
removeSubGroup(int index)
Removes the sub group with the specified index. |
Iterator<ContactGroup> |
subgroups()
Returns an iterator over the sub groups that this ContactGroup contains. |
String |
toString()
Returns a string representation of the root contact group that contains all subgroups and subcontacts of this group. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
RootContactGroupJabberImpl(ProtocolProviderServiceJabberImpl protocolProvider)
| Method Detail |
|---|
public boolean canContainSubgroups()
public String getGroupName()
void removeContact(ContactJabberImpl contact)
contact - the contact to remove.void addContact(ContactJabberImpl contact)
contact - the new contact to add to this groupvoid addSubGroup(ContactGroupJabberImpl group)
group - the group to add.void removeSubGroup(ContactGroupJabberImpl group)
group - the group to remove.void removeSubGroup(int index)
index - the index of the group to removepublic int countSubgroups()
public ContactGroup getParentContactGroup()
public ContactGroup getGroup(int index)
index - the index of the ContactGroup to retrieve.
public ContactGroup getGroup(String groupName)
groupName - the name of the ContactGroup to retrieve.
public Contact getContact(String id)
id - the addres or identifier of the Contact we are
looking for.
ContactJabberImpl findContact(String id)
id - the id for the contact we're looking for.
public Iterator<ContactGroup> subgroups()
public int countContacts()
public Iterator<Contact> contacts()
public String toString()
toString in class Objectpublic ProtocolProviderService getProtocolProvider()
public boolean isPersistent()
public String getPersistentData()
public boolean isResolved()
public String getUID()
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||