|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuicc.contactmanager.ContactManager
public class ContactManager
The ContactManager
class gives access to the contact manager information base.
A contact manager is composed of:
An application needs to first get a reference to the ContactManager
instance
using the getContactManager()
method.
Then it can use the methods provided by this instance to create
FieldDescriptorsListView
, ContactsListView
and GroupsListView
instances
that will allow it to access these collections.
The ContactManager instance is a Permanent JCRE EntryPoint object.
Constructor Summary | |
---|---|
ContactManager()
|
Method Summary | |
---|---|
ContactsListView |
createContactsListViewInstance()
Factory method that returns a ContactsListView instance that
represents the contact manager's contacts list. |
FieldDescriptorsListView |
createFieldDescriptorsListViewInstance()
Factory method that returns a FieldDescriptorsListView instance that
represents the contact manager's field descriptors list. |
GroupsListView |
createGroupsListViewInstance()
Factory method that returns a GroupsListView instance that
represents the contact manager's groups list. |
void |
deregisterContactEventListner(ContactEventListener contactEventListener)
Deregisters a ContactEventListener from the ContactManager. |
static ContactManager |
getContactManager()
Returns the ContactManager singleton. |
void |
registerContactEventListener(ContactEventListener contactEventListener)
Registers a ContactEventListener to the ContactManager. |
Methods inherited from class java.lang.Object |
---|
equals |
Constructor Detail |
---|
public ContactManager()
Method Detail |
---|
public static ContactManager getContactManager()
public ContactsListView createContactsListViewInstance()
Factory method that returns a ContactsListView
instance that
represents the contact manager's contacts list.
The instance returned is owned by the calling application.
Successive calls to this method will return distinct instances.
Although they may represent the same contacts list, each of them has its
own state.
This particularly applies to the current enumeration progress, which is specific to
each instance.
ContactsListView
instancepublic FieldDescriptorsListView createFieldDescriptorsListViewInstance()
Factory method that returns a FieldDescriptorsListView
instance that
represents the contact manager's field descriptors list.
The instance returned is owned by the calling application.
Successive calls to this method will return distinct instances.
Although they may represent the same field descriptors list, each of them has its
own state.
This particularly applies to the current enumeration progress, which is specific to
each instance.
public GroupsListView createGroupsListViewInstance()
Factory method that returns a GroupsListView
instance that
represents the contact manager's groups list.
The instance returned is owned by the calling application.
Successive calls to this method will return distinct instances.
Although they may represent the same groups list, each of them has its
own state.
This particularly applies to the current enumeration progress, which is specific to
each instance.
public void registerContactEventListener(ContactEventListener contactEventListener)
Registers a ContactEventListener to the ContactManager.
Caution: The implementation of this method must avoid any action that would cause a recursive invocation.
contactEventListener
- the event listener to registerpublic void deregisterContactEventListner(ContactEventListener contactEventListener)
Deregisters a ContactEventListener from the ContactManager.
contactEventListener
- the event listener to deregister
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |