| java.lang.Object com.sun.kvem.midp.pim.AbstractPIMList
All known Subclasses: com.sun.kvem.midp.pim.EventListImpl, com.sun.kvem.midp.pim.ToDoListImpl, com.sun.kvem.midp.pim.ContactListImpl,
AbstractPIMList | abstract public class AbstractPIMList implements PIMList(Code) | | Generic PIM list.
|
AbstractPIMList | AbstractPIMList(int type, String name, int mode, Object handle)(Code) | | Base type for PIM list structures.
Parameters: type - identifier for list type Parameters: name - label for the list Parameters: mode - readable or writable mode Parameters: handle - handle of the list |
addItem | public void addItem(AbstractPIMItem item)(Code) | | Adds an item to a PIM list.
Parameters: item - item to add to the list |
checkNullCategory | protected void checkNullCategory(String category)(Code) | | Ensure the category is not missing.
throws: NullPointerException - if category is null Parameters: category - data to validate |
commit | Object commit(Object key, byte[] data, String[] categories) throws PIMException(Code) | | Commits an item to the database
Parameters: key - the key of the item to commit. This can be null. Parameters: data - the binary data for the item Parameters: categories - list of item's categories an updated non-null key for the item throws: PIMException - in case of I/O error |
getArrayElementLabel | public String getArrayElementLabel(int stringArrayField, int arrayElement)(Code) | | |
getAttributeLabel | public String getAttributeLabel(int attribute)(Code) | | |
getFieldDataType | public int getFieldDataType(int field)(Code) | | |
getHandle | public Object getHandle()(Code) | | Returns list handle
handle of the list |
getSupportedArrayElements | public int[] getSupportedArrayElements(int stringArrayField)(Code) | | |
getSupportedAttributes | public int[] getSupportedAttributes(int field)(Code) | | |
getSupportedFields | public int[] getSupportedFields()(Code) | | |
getType | int getType()(Code) | | Gets the type of this PIM list (PIM.CONTACT_LIST, PIM.EVENT_LIST or
PIM.TODO_LIST).
the type of the PIM list |
isSupportedArrayElement | public boolean isSupportedArrayElement(int stringArrayField, int arrayElement)(Code) | | |
isSupportedAttribute | public boolean isSupportedAttribute(int field, int attribute)(Code) | | |
isSupportedField | public boolean isSupportedField(int field)(Code) | | |
maxCategories | public int maxCategories()(Code) | | |
maxValues | public int maxValues(int field)(Code) | | |
stringArraySize | public int stringArraySize(int stringArrayField)(Code) | | |
|
|