|
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.gui.main.contactlist.contactsource.MetaContactListSource
public class MetaContactListSource
The MetaContactListSource is an abstraction of the MetaContactListService, which makes the correspondence between a MetaContact and an UIContact and between a MetaContactGroup and an UIGroup. It is also responsible for filtering of the MetaContactListService through a given pattern.
| Field Summary | |
|---|---|
static String |
UI_CONTACT_DATA_KEY
The data key of the MetaContactDescriptor object used to store a reference to this object in its corresponding MetaContact. |
static String |
UI_GROUP_DATA_KEY
The data key of the MetaGroupDescriptor object used to store a reference to this object in its corresponding MetaContactGroup. |
| Constructor Summary | |
|---|---|
MetaContactListSource()
|
|
| Method Summary | |
|---|---|
void |
childContactsReordered(MetaContactGroupEvent evt)
Reorders contact list nodes, when MetaContact-s in a MetaContactGroup has been reordered. |
void |
contactPresenceStatusChanged(ContactPresenceStatusChangeEvent evt)
Called whenever a change occurs in the PresenceStatus of one of the contacts that we have subscribed for. |
static UIContact |
createUIContact(MetaContact metaContact)
Creates a UIContact for the given metaContact. |
static UIGroup |
createUIGroup(MetaContactGroup metaGroup)
Creates a UIGroupDescriptor for the given metaGroup. |
static UIContact |
getUIContact(MetaContact metaContact)
Returns the UIContact corresponding to the given MetaContact. |
static UIGroup |
getUIGroup(MetaContactGroup metaGroup)
Returns the UIGroup corresponding to the given MetaContactGroup. |
boolean |
isMatching(Pattern filterPattern,
MetaContactGroup metaGroup)
Checks if the given metaGroup is matching the current filter. |
static boolean |
isNewGroup(MetaContactGroup metaGroup)
Returns whether MetaContactGroup is newly created. |
static boolean |
isRootGroup(MetaContactGroup group)
Indicates if the given MetaContactGroup is the root group. |
void |
metaContactAdded(MetaContactEvent evt)
Adds a node in the contact list, when a MetaContact has been added in the MetaContactListService. |
void |
metaContactAvatarUpdated(MetaContactAvatarUpdateEvent evt)
Notifies the tree model, when the MetaContact avatar has been modified in the MetaContactListService. |
void |
metaContactGroupAdded(MetaContactGroupEvent evt)
Adds a group node in the contact list, when a MetaContactGroup has been added in the MetaContactListService. |
void |
metaContactGroupModified(MetaContactGroupEvent evt)
Notifies the tree model, when a MetaContactGroup has been modified in the MetaContactListService. |
void |
metaContactGroupRemoved(MetaContactGroupEvent evt)
Removes the corresponding group node in the contact list, when a MetaContactGroup has been removed from the MetaContactListService. |
void |
metaContactModified(MetaContactModifiedEvent evt)
Notifies the tree model, when a MetaContact has been modified in the MetaContactListService. |
void |
metaContactMoved(MetaContactMovedEvent evt)
Performs needed operations, when a MetaContact has been moved in the MetaContactListService from one group to another. |
void |
metaContactRemoved(MetaContactEvent evt)
Removes the corresponding contact node in the contact list, when a MetaContact has been removed from the MetaContactListService. |
void |
metaContactRenamed(MetaContactRenamedEvent evt)
Refreshes the corresponding node, when a MetaContact has been renamed in the MetaContactListService. |
void |
protoContactAdded(ProtoContactEvent evt)
Adds a contact node corresponding to the parent MetaContact if this last is matching the current filter and wasn't previously contained in the contact list. |
void |
protoContactModified(ProtoContactEvent evt)
Notifies the UI representation of the parent MetaContact that this contact has been modified. |
void |
protoContactMoved(ProtoContactEvent evt)
Adds the new MetaContact parent and removes the old one if the first is matching the current filter and the last is no longer matching it. |
void |
protoContactRemoved(ProtoContactEvent evt)
Removes the contact node corresponding to the parent MetaContact if the last is no longer matching the current filter and wasn't previously contained in the contact list. |
MetaContactQuery |
queryMetaContactSource(Pattern filterPattern)
Filters the MetaContactListService to match the given filterPattern and stores the result in the given treeModel. |
void |
queryMetaContactSource(Pattern filterPattern,
MetaContactGroup parentGroup,
MetaContactQuery query,
int resultCount)
Filters the children in the given MetaContactGroup to match the given filterPattern and stores the result in the given treeModel. |
static void |
removeUIContact(MetaContact metaContact)
Removes the UIContact from the given metaContact. |
static void |
removeUIGroup(MetaContactGroup metaGroup)
Removes the descriptor from the given metaGroup. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String UI_CONTACT_DATA_KEY
public static final String UI_GROUP_DATA_KEY
| Constructor Detail |
|---|
public MetaContactListSource()
| Method Detail |
|---|
public static UIContact getUIContact(MetaContact metaContact)
metaContact - the MetaContact, which corresponding UI
contact we're looking for
public static UIGroup getUIGroup(MetaContactGroup metaGroup)
metaGroup - the MetaContactGroup, which UI group we're
looking for
public static boolean isNewGroup(MetaContactGroup metaGroup)
metaGroup - the MetaContactGroup, which we will check.
public static UIContact createUIContact(MetaContact metaContact)
metaContact - the MetaContact for which we would like to
create an UIContact
public static void removeUIContact(MetaContact metaContact)
metaContact - the MetaContact, which corresponding UI
contact we would like to removepublic static UIGroup createUIGroup(MetaContactGroup metaGroup)
metaGroup - the MetaContactGroup for which we would like to
create an UIContact
public static void removeUIGroup(MetaContactGroup metaGroup)
metaGroup - the MetaContactGroup, which descriptor we
would like to removepublic static boolean isRootGroup(MetaContactGroup group)
group - the MetaContactGroup to check
public MetaContactQuery queryMetaContactSource(Pattern filterPattern)
filterPattern - the pattern to filter through
public void queryMetaContactSource(Pattern filterPattern,
MetaContactGroup parentGroup,
MetaContactQuery query,
int resultCount)
filterPattern - the pattern to filter throughparentGroup - the MetaContactGroup to filterquery - the object that tracks the queryresultCount - the initial result count we would insert directly to
the contact list without firing events
public boolean isMatching(Pattern filterPattern,
MetaContactGroup metaGroup)
filterPattern - the filter pattern to check for matchesmetaGroup - the MetaContactGroup to check
public void contactPresenceStatusChanged(ContactPresenceStatusChangeEvent evt)
ContactPresenceStatusListener
contactPresenceStatusChanged in interface ContactPresenceStatusListenerevt - the ContactPresenceStatusChangeEvent describing the status
change.public void childContactsReordered(MetaContactGroupEvent evt)
childContactsReordered in interface MetaContactListListenerevt - the MetaContactGroupEvent that notified uspublic void metaContactAdded(MetaContactEvent evt)
metaContactAdded in interface MetaContactListListenerevt - the MetaContactEvent that notified uspublic void metaContactGroupAdded(MetaContactGroupEvent evt)
metaContactGroupAdded in interface MetaContactListListenerevt - the MetaContactGroupEvent that notified uspublic void metaContactGroupModified(MetaContactGroupEvent evt)
metaContactGroupModified in interface MetaContactListListenerevt - the MetaContactGroupEvent that notified uspublic void metaContactGroupRemoved(MetaContactGroupEvent evt)
metaContactGroupRemoved in interface MetaContactListListenerevt - the MetaContactGroupEvent that notified uspublic void metaContactModified(MetaContactModifiedEvent evt)
metaContactModified in interface MetaContactListListenerevt - the MetaContactEvent that notified uspublic void metaContactMoved(MetaContactMovedEvent evt)
metaContactMoved in interface MetaContactListListenerevt - the MetaContactMovedEvent that notified uspublic void metaContactRemoved(MetaContactEvent evt)
metaContactRemoved in interface MetaContactListListenerevt - the MetaContactEvent that notified uspublic void metaContactRenamed(MetaContactRenamedEvent evt)
metaContactRenamed in interface MetaContactListListenerevt - the MetaContactRenamedEvent that notified uspublic void metaContactAvatarUpdated(MetaContactAvatarUpdateEvent evt)
metaContactAvatarUpdated in interface MetaContactListListenerevt - the MetaContactEvent that notified uspublic void protoContactAdded(ProtoContactEvent evt)
protoContactAdded in interface MetaContactListListenerevt - the ProtoContactEvent that notified uspublic void protoContactModified(ProtoContactEvent evt)
protoContactModified in interface MetaContactListListenerevt - the ProtoContactEvent that notified uspublic void protoContactMoved(ProtoContactEvent evt)
protoContactMoved in interface MetaContactListListenerevt - the ProtoContactEvent that notified uspublic void protoContactRemoved(ProtoContactEvent evt)
protoContactRemoved in interface MetaContactListListenerevt - the ProtoContactEvent that notified us
|
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 | |||||||||