📄 todolist.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN""http://www.w3.org/TR/REC-html40/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<TITLE>ToDoList (PIM Optional Package 1.0 Spec, Final Release) </TITLE>
<!-- Generated by javadoc on Wed Oct 29 13:13:41 PST 2003 -->
<META NAME="keywords" CONTENT="javax.microedition.pim.ToDoList,ToDoList interface">
<LINK REL="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
<SCRIPT>
function asd()
{
parent.document.title="ToDoList (PIM Optional Package 1.0 Spec, Final Release)";
}
</SCRIPT>
</HEAD>
<BODY BGCOLOR="white" onload="asd();">
<!-- ========== START OF NAVBAR ========== -->
<A NAME="navbar_top"><!-- --></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
<TR>
<TD COLSPAN="3" BGCOLOR="#eeeeff" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#eeeeff" CLASS="NavBarCell1">
<A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
<TD BGCOLOR="#eeeeff" CLASS="NavBarCell1">
<A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
<TD BGCOLOR="#ffffff" CLASS="NavBarCell1Rev">
<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
<TD BGCOLOR="#eeeeff" CLASS="NavBarCell1">
<A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#eeeeff" CLASS="NavBarCell1">
<A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#eeeeff" CLASS="NavBarCell1">
<A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#eeeeff" CLASS="NavBarCell1">
<A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN="3"><EM> PIM Optional Package 1.0<br>
Final Release</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../javax/microedition/pim/ToDo.html"><B>PREV
CLASS</B></A> NEXT CLASS</FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html" TARGET="_top">
<B>FRAMES</B></A> <A HREF="ToDoList.html" TARGET="_top"><B>NO FRAMES</B></A>
<SCRIPT> <!-- if(window==top) { document.writeln('<A HREF="../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>'); } //--></SCRIPT>
<NOSCRIPT>
<A HREF="../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>
</NOSCRIPT>
</FONT>
</TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<!-- =========== END OF NAVBAR =========== -->
<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">javax.microedition.pim</FONT>
<BR>
Interface ToDoList</H2>
<DL>
<DT><B>All Superinterfaces:</B>
<DD>
<A HREF="../../../javax/microedition/pim/PIMList.html">PIMList</A></DD>
</DL>
<HR>
<DL>
<DT>public interface <B>ToDoList</B><DT>extends <A HREF="../../../javax/microedition/pim/PIMList.html">
PIMList</A></DT></DL>
<P>
Represents a ToDo list containing ToDo items.
<P>
A ToDo List is responsible for determining which of the fields from a ToDo are
retained when a ToDo is persisted into the List. A ToDo List does not have to
retain all of the fields in a ToDo when the ToDo is persisted into the List.
See the ToDo interface for a description of the fields available for a specific
ToDo. The fields that are supported by a particular ToDo List can be queried
through the method <A HREF="../../../javax/microedition/pim/PIMList.html#isSupportedField(int)">
<CODE>PIMList.isSupportedField(int)</CODE></A>. If a field ID that is not
in the ToDo interface is provided as the parameter to the <A HREF="../../../javax/microedition/pim/PIMList.html#isSupportedField(int)">
<CODE>PIMList.isSupportedField(int)</CODE></A> method, a <code>java.lang.IllegalArgumentException</code>
is thrown.
</P>
<h3>Inherited Method Behavior</h3>
<P>
A ToDoList only accepts objects implementing the ToDo interface as a parameter
to <A HREF="../../../javax/microedition/pim/PIMList.html#items(javax.microedition.pim.PIMItem)">
<CODE>PIMList.items(PIMItem)</CODE></A>). A <code>java.lang.IllegalArgumentException</code>
is thrown by this method if the input parameter does not implement the ToDo
interface.
</P>
<P>
Enumerations returned by <A HREF="../../../javax/microedition/pim/PIMList.html#items()">
<CODE>PIMList.items()</CODE></A>, <A HREF="../../../javax/microedition/pim/PIMList.html#items(javax.microedition.pim.PIMItem)">
<CODE>PIMList.items(PIMItem)</CODE></A>, and <A HREF="../../../javax/microedition/pim/ToDoList.html#items(int, long, long)">
<CODE>items(int, long, long)</CODE></A> contain only objects implementing a
ToDo interface.</P>
<P>
<P>
<DL>
<DT><B>Since:</B>
<DD>
PIM 1.0 <DT><B>See Also:</B><DD><A HREF="../../../javax/microedition/pim/ToDo.html"><CODE>ToDo</CODE></A></DD></DL>
<HR>
<P>
<!-- ======== NESTED CLASS SUMMARY ======== -->
<!-- =========== FIELD SUMMARY =========== -->
<A NAME="field_summary"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#ccccff" CLASS="TableHeadingColor">
<TD COLSPAN="2"><FONT SIZE="+2"> <B>Field Summary</B></FONT></TD>
</TR>
</TABLE>
<A NAME="fields_inherited_from_class_javax.microedition.pim.PIMList"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#eeeeff" CLASS="TableSubHeadingColor">
<TD><B>Fields inherited from interface javax.microedition.pim.<A HREF="../../../javax/microedition/pim/PIMList.html">PIMList</A></B></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../javax/microedition/pim/PIMList.html#UNCATEGORIZED">UNCATEGORIZED</A></CODE></TD>
</TR>
</TABLE>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<!-- ========== METHOD SUMMARY =========== -->
<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#ccccff" CLASS="TableHeadingColor">
<TD COLSPAN="2"><FONT SIZE="+2"> <B>Method Summary</B></FONT></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../../javax/microedition/pim/ToDo.html">ToDo</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/microedition/pim/ToDoList.html#createToDo()">createToDo</A></B>()</CODE>
<BR>
Factory method to
create a ToDo entry for this ToDo list.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../../javax/microedition/pim/ToDo.html">ToDo</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/microedition/pim/ToDoList.html#importToDo(javax.microedition.pim.ToDo)">importToDo</A></B>(<A HREF="../../../javax/microedition/pim/ToDo.html">ToDo</A> item)</CODE>
<BR>
Imports the given
ToDo into this list by making a new ToDo for the list and filling its
information with as much information as it can from the provided ToDo.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> java.util.Enumeration</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/microedition/pim/ToDoList.html#items(int, long, long)">items</A></B>(int field,
long startDate, long endDate)</CODE>
<BR>
Return an
enumeration of all the ToDos in the list where the value of the specified date
field falls in the range from startDate to endDate inclusive.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/microedition/pim/ToDoList.html#removeToDo(javax.microedition.pim.ToDo)">removeToDo</A></B>(<A HREF="../../../javax/microedition/pim/ToDo.html">ToDo</A> item)</CODE>
<BR>
Removes a specific
ToDo from the list.</TD>
</TR>
</TABLE>
<A NAME="methods_inherited_from_class_javax.microedition.pim.PIMList"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#eeeeff" CLASS="TableSubHeadingColor">
<TD><B>Methods inherited from interface javax.microedition.pim.<A HREF="../../../javax/microedition/pim/PIMList.html">PIMList</A></B></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../javax/microedition/pim/PIMList.html#addCategory(java.lang.String)">addCategory</A>,
<A HREF="../../../javax/microedition/pim/PIMList.html#close()">close</A>, <A HREF="../../../javax/microedition/pim/PIMList.html#deleteCategory(java.lang.String, boolean)">
deleteCategory</A>, <A HREF="../../../javax/microedition/pim/PIMList.html#getArrayElementLabel(int, int)">
getArrayElementLabel</A>, <A HREF="../../../javax/microedition/pim/PIMList.html#getAttributeLabel(int)">
getAttributeLabel</A>, <A HREF="../../../javax/microedition/pim/PIMList.html#getCategories()">
getCategories</A>, <A HREF="../../../javax/microedition/pim/PIMList.html#getFieldDataType(int)">
getFieldDataType</A>, <A HREF="../../../javax/microedition/pim/PIMList.html#getFieldLabel(int)">
getFieldLabel</A>, <A HREF="../../../javax/microedition/pim/PIMList.html#getName()">
getName</A>, <A HREF="../../../javax/microedition/pim/PIMList.html#getSupportedArrayElements(int)">
getSupportedArrayElements</A>, <A HREF="../../../javax/microedition/pim/PIMList.html#getSupportedAttributes(int)">
getSupportedAttributes</A>, <A HREF="../../../javax/microedition/pim/PIMList.html#getSupportedFields()">
getSupportedFields</A>, <A HREF="../../../javax/microedition/pim/PIMList.html#isCategory(java.lang.String)">
isCategory</A>, <A HREF="../../../javax/microedition/pim/PIMList.html#isSupportedArrayElement(int, int)">
isSupportedArrayElement</A>, <A HREF="../../../javax/microedition/pim/PIMList.html#isSupportedAttribute(int, int)">
isSupportedAttribute</A>, <A HREF="../../../javax/microedition/pim/PIMList.html#isSupportedField(int)">
isSupportedField</A>, <A HREF="../../../javax/microedition/pim/PIMList.html#items()">
items</A>, <A HREF="../../../javax/microedition/pim/PIMList.html#items(javax.microedition.pim.PIMItem)">
items</A>, <A HREF="../../../javax/microedition/pim/PIMList.html#items(java.lang.String)">
items</A>, <A HREF="../../../javax/microedition/pim/PIMList.html#itemsByCategory(java.lang.String)">
itemsByCategory</A>, <A HREF="../../../javax/microedition/pim/PIMList.html#maxCategories()">
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -