|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Represents a ToDo list containing ToDo elements.
The PIMList.isSupportedField(int) is invoked to determine if a field
(as specified by the integer argument) is supported by a
ToDoList. Similarly, the PIMList.getSupportedAttributes(int) method is invoked to return an integer
array representing all fields supported by the list.
A ToDoList accepts only objects that implement the ToDo interface as a
parameter to PIMList.items(PIMItem)).
An IllegalArgumentException will be thrown if the input parameter does not implement the ToDo interface.
For more information about this class or about the personal information management (PIM) API, refer to The PDA Profile specification (JSR-000075) for the J2ME(TM) Platform.
ToDo,
PIMList| Fields inherited from interface net.rim.blackberry.api.pim.PIMList |
UNCATEGORIZED |
| Method Summary | ||
|
ToDo |
createToDo()
Creates a new ToDo instance.
|
|
PIMItem |
importToDo(ToDo element)
Imports a ToDo into the list using a given, predefined
ToDo object.
|
|
Enumeration |
items(long startDate,
long endDate)
Returns an enumeration containing all ToDo instances between
the specified start date and end date inclusive.
|
|
void |
removeToDo(ToDo element)
Removes a ToDo from the list.
|
| Methods inherited from interface net.rim.blackberry.api.pim.PIMList |
addCategory, close, deleteCategory, getArrayElementLabel, getAttributeLabel, getCategories, getFieldDataType, getFieldLabel, getName, getSupportedArrayElements, getSupportedAttributes, getSupportedFields, isCategory, isSupportedArrayElement, isSupportedAttribute, isSupportedField, items, items, items, itemsByCategory, maxCategories, maxValues, renameCategory |
| Method Detail |
public ToDo createToDo()
ToDo instance.
The new ToDo object is created initially empty and
contains empty fields for all attributes that are supported by the list.
The ToDo object is not added to the
ToDoList upon creation. The method PIMItem.commit() must be invoked in order to add the ToDo
to the list.
ToDo instance.public PIMItem importToDo(ToDo element)
ToDo into the list using a given, predefined
ToDo object.
The ToDo is created using as much of the existing
information as possible. If a field in the existing ToDo
object is not supported by the ToDoList, the field is not
included in the ToDo. If the specified
ToDo is already in the list, a new ToDo is
created with similar information.
The ToDo object is not added to the
ToDoList upon creation. The method PIMItem.commit() must be invoked in order to add the ToDo
to the list.
element - The ToDo object to import into the list.PIMItem instance to add to the list.public void removeToDo(ToDo element) throws PIMException
ToDo from the list.
element - The ToDo to be removed from the list.PIMException - Thrown if an error occurs, or if the ToDo cannot be found
in the list.public Enumeration items(long startDate, long endDate) throws PIMException
ToDo instances between
the specified start date and end date inclusive.
startDate - The start date (in long MS format) to restrict ToDo's to.endDate - The end date (in long MS format) to restrict
ToDo's to.ToDo items between the
two specified dates.PIMException - Thrown if an error occurs, or if the ToDo cannot be found
in the list.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 1999-2002 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.