📄 contact.html
字号:
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.microedition.pim.Contact.ADDR_STREET">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="ADDR_LOCALITY"><!-- --></A><H3>
ADDR_LOCALITY</H3>
<PRE>
public static final int <B>ADDR_LOCALITY</B></PRE>
<DL>
<DD>Index into the string array for an address field, where the data at this index represents the locality (for example, a city) of a particular address. Data for this field is of String type.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.microedition.pim.Contact.ADDR_LOCALITY">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="ADDR_REGION"><!-- --></A><H3>
ADDR_REGION</H3>
<PRE>
public static final int <B>ADDR_REGION</B></PRE>
<DL>
<DD>Index into the string array for an address field, where the data at this index represents the region (for example, a province, state, or territory) of a particular address. Data for this field is of String type.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.microedition.pim.Contact.ADDR_REGION">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="ADDR_POSTALCODE"><!-- --></A><H3>
ADDR_POSTALCODE</H3>
<PRE>
public static final int <B>ADDR_POSTALCODE</B></PRE>
<DL>
<DD>Index into the string array for an address field, where the data at this index represents the postal code (for example, a zip code) of a particular address. Data for this field is of String type.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.microedition.pim.Contact.ADDR_POSTALCODE">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="ADDR_COUNTRY"><!-- --></A><H3>
ADDR_COUNTRY</H3>
<PRE>
public static final int <B>ADDR_COUNTRY</B></PRE>
<DL>
<DD>Index into the string array for an address field, where the data at this index represents the country of a particular address. Data for this field is of String type.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.microedition.pim.Contact.ADDR_COUNTRY">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="ADDRSIZE"><!-- --></A><H3>
ADDRSIZE</H3>
<PRE>
public static final int <B>ADDRSIZE</B></PRE>
<DL>
<DD>Constant indicating the size of an address string array.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.microedition.pim.Contact.ADDRSIZE">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="NAME_FAMILY"><!-- --></A><H3>
NAME_FAMILY</H3>
<PRE>
public static final int <B>NAME_FAMILY</B></PRE>
<DL>
<DD>Index into the string array for a name field, where the data at this index represents the family name. For example: <BR> "Stevenson"
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.microedition.pim.Contact.NAME_FAMILY">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="NAME_GIVEN"><!-- --></A><H3>
NAME_GIVEN</H3>
<PRE>
public static final int <B>NAME_GIVEN</B></PRE>
<DL>
<DD>Index into the string array for a name field, where the data at this index represents the given name. For example: <BR> "Johnathan"
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.microedition.pim.Contact.NAME_GIVEN">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="NAME_OTHER"><!-- --></A><H3>
NAME_OTHER</H3>
<PRE>
public static final int <B>NAME_OTHER</B></PRE>
<DL>
<DD>Index into the string array for a name field, where the data at this index represents other alternate name or names. For example: <BR> "John, Johnny"
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.microedition.pim.Contact.NAME_OTHER">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="NAME_PREFIX"><!-- --></A><H3>
NAME_PREFIX</H3>
<PRE>
public static final int <B>NAME_PREFIX</B></PRE>
<DL>
<DD>Index into the string array for a name field, where the data at this index represents a prefix to a name. For example: <BR> "Dr."
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.microedition.pim.Contact.NAME_PREFIX">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="NAME_SUFFIX"><!-- --></A><H3>
NAME_SUFFIX</H3>
<PRE>
public static final int <B>NAME_SUFFIX</B></PRE>
<DL>
<DD>Index into the string array for a name field, where the data at this index represents a suffix to a name. For example: <BR> "M.D., A.C.P."
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.microedition.pim.Contact.NAME_SUFFIX">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="NAMESIZE"><!-- --></A><H3>
NAMESIZE</H3>
<PRE>
public static final int <B>NAMESIZE</B></PRE>
<DL>
<DD>Constant indicating the size of a name string array.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.microedition.pim.Contact.NAMESIZE">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="CLASS_CONFIDENTIAL"><!-- --></A><H3>
CLASS_CONFIDENTIAL</H3>
<PRE>
public static final int <B>CLASS_CONFIDENTIAL</B></PRE>
<DL>
<DD>Constant indicating this contact's class of access is confidential.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.microedition.pim.Contact.CLASS_CONFIDENTIAL">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="CLASS_PRIVATE"><!-- --></A><H3>
CLASS_PRIVATE</H3>
<PRE>
public static final int <B>CLASS_PRIVATE</B></PRE>
<DL>
<DD>Constant indicating this contact's class of access is private.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.microedition.pim.Contact.CLASS_PRIVATE">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="CLASS_PUBLIC"><!-- --></A><H3>
CLASS_PUBLIC</H3>
<PRE>
public static final int <B>CLASS_PUBLIC</B></PRE>
<DL>
<DD>Constant indicating this contact's class of access is public.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.microedition.pim.Contact.CLASS_PUBLIC">Constant Field Values</A></DL>
</DL>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<!-- ============ METHOD DETAIL ========== -->
<A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Method Detail</B></FONT></TD>
</TR>
</TABLE>
<A NAME="getPreferredIndex(int)"><!-- --></A><H3>
getPreferredIndex</H3>
<PRE>
public int <B>getPreferredIndex</B>(int field)</PRE>
<DL>
<DD>Returns the index of the value marked with the attribute ATTR_PREFERRED for the given field. Only one value per field may be marked as preferred. <A HREF="../../../javax/microedition/pim/PIMList.html#isSupportedField(int)"><CODE>PIMList.isSupportedField(int)</CODE></A> should be used to verify the field validity for this item prior to invoking this method. <A HREF="../../../javax/microedition/pim/PIMList.html#isSupportedAttribute(int, int)"><CODE>PIMList.isSupportedAttribute(int, int)</CODE></A> should be used to verify the attribute validity for this item prior to invoking this method.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>field</CODE> - the field to look for a preferred value<DT><B>Returns:</B><DD>an integer representing the index of the value that is marked as preferred. -1 is returned if no values within the field are marked as preferred.<DT><B>Throws:</B><DD><CODE>java.lang.IllegalArgumentException</CODE> - if field is not a valid field for a Contact.<DD><CODE><A HREF="../../../javax/microedition/pim/UnsupportedFieldException.html">UnsupportedFieldException</A></CODE> - if the field is not supported by the implementing class.</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>
<!-- ========== START OF NAVBAR ========== -->
<A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
<TR>
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_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>
Proposed Final Draft<br>Rev. 0.24</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
PREV CLASS
<A HREF="../../../javax/microedition/pim/ContactList.html"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../index.html" TARGET="_top"><B>FRAMES</B></A>
<A HREF="Contact.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 | <A HREF="#field_summary">FIELD</A> | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: <A HREF="#field_detail">FIELD</A> | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<!-- =========== END OF NAVBAR =========== -->
<HR>
<font size=-1>Copyright © 2002-2003 PalmSource, Inc. All Rights Reserved.<br>Java is a trademark of Sun Microsystems, Inc.</font>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -