FileDocCategorySizeDatePackage
ContactListImpl.javaAPI DocphoneME MR2 API (J2ME)2415Wed May 02 18:00:28 BST 2007com.sun.kvem.midp.pim

ContactListImpl

public class ContactListImpl extends AbstractPIMList implements javax.microedition.pim.ContactList
Class ContactListImpl implements methods of PIM interface ContactList.

Fields Summary
Constructors Summary
ContactListImpl(String name, int mode, Object handle)
Constructs a Contact List handler.

param
name label for the list
param
mode readable or writable access
param
handle handle of the list

        super(PIM.CONTACT_LIST, name, mode, handle);
    
Methods Summary
public javax.microedition.pim.ContactcreateContact()
Creates a Contact entry.

return
Contact entry

        return new ContactImpl(this);
    
public javax.microedition.pim.ContactimportContact(javax.microedition.pim.Contact contact)
Initializes a Contact entry from a previous Contact entry.

param
contact input data
return
new Contact initialized from contact

        return new ContactImpl(this, contact);
    
public voidremoveContact(javax.microedition.pim.Contact contact)
Removes a contact from the list.

param
contact entry to be removed
throws
PIMException if the entry is not in the list

        removeItem(contact);