⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 repeatrule.html

📁 J2ME PDA开发PIM的技术规范,可使应用程序查看手机本地联系人列表, 本地文件
💻 HTML
📖 第 1 页 / 共 5 页
字号:
				<TR BGCOLOR="white" CLASS="TableRowColor">
					<TD><CODE><B><A HREF="../../../javax/microedition/pim/RepeatRule.html#RepeatRule()">RepeatRule</A></B>()</CODE>
						<BR>
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default 
						constructor.</TD>
				</TR>
			</TABLE>
			&nbsp; 
			<!-- ========== 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>&nbsp;void</CODE></FONT></TD>
					<TD><CODE><B><A HREF="../../../javax/microedition/pim/RepeatRule.html#addExceptDate(long)">addExceptDate</A></B>(long&nbsp;date)</CODE>
						<BR>
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Add a Date for 
						which this RepeatRule should not occur.</TD>
				</TR>
				<TR BGCOLOR="white" CLASS="TableRowColor">
					<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>&nbsp;java.util.Enumeration</CODE></FONT></TD>
					<TD><CODE><B><A HREF="../../../javax/microedition/pim/RepeatRule.html#dates(long, long, long)">dates</A></B>(long&nbsp;startDate, 
							long&nbsp;subsetBeginning, long&nbsp;subsetEnding)</CODE>
						<BR>
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns an 
						Enumeration of dates on which an Event would occur.</TD>
				</TR>
				<TR BGCOLOR="white" CLASS="TableRowColor">
					<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>&nbsp;boolean</CODE></FONT></TD>
					<TD><CODE><B><A HREF="../../../javax/microedition/pim/RepeatRule.html#equals(java.lang.Object)">equals</A></B>(java.lang.Object&nbsp;obj)</CODE>
						<BR>
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Compares this 
						RepeatRule with a given RepeatRule for content equality.</TD>
				</TR>
				<TR BGCOLOR="white" CLASS="TableRowColor">
					<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>&nbsp;long</CODE></FONT></TD>
					<TD><CODE><B><A HREF="../../../javax/microedition/pim/RepeatRule.html#getDate(int)">getDate</A></B>(int&nbsp;field)</CODE>
						<BR>
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Retrieves a Date 
						field.</TD>
				</TR>
				<TR BGCOLOR="white" CLASS="TableRowColor">
					<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>&nbsp;java.util.Enumeration</CODE></FONT></TD>
					<TD><CODE><B><A HREF="../../../javax/microedition/pim/RepeatRule.html#getExceptDates()">getExceptDates</A></B>()</CODE>
						<BR>
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the Dates 
						for which this RepeatRule should not occur.</TD>
				</TR>
				<TR BGCOLOR="white" CLASS="TableRowColor">
					<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>&nbsp;int[]</CODE></FONT></TD>
					<TD><CODE><B><A HREF="../../../javax/microedition/pim/RepeatRule.html#getFields()">getFields</A></B>()</CODE>
						<BR>
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a list of 
						fields that currently have values assigned to it.</TD>
				</TR>
				<TR BGCOLOR="white" CLASS="TableRowColor">
					<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>&nbsp;int</CODE></FONT></TD>
					<TD><CODE><B><A HREF="../../../javax/microedition/pim/RepeatRule.html#getInt(int)">getInt</A></B>(int&nbsp;field)</CODE>
						<BR>
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Retrieves an 
						integer field.</TD>
				</TR>
				<TR BGCOLOR="white" CLASS="TableRowColor">
					<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>&nbsp;void</CODE></FONT></TD>
					<TD><CODE><B><A HREF="../../../javax/microedition/pim/RepeatRule.html#removeExceptDate(long)">removeExceptDate</A></B>(long&nbsp;date)</CODE>
						<BR>
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Remove a Date for 
						which this RepeatRule should not occur.</TD>
				</TR>
				<TR BGCOLOR="white" CLASS="TableRowColor">
					<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>&nbsp;void</CODE></FONT></TD>
					<TD><CODE><B><A HREF="../../../javax/microedition/pim/RepeatRule.html#setDate(int, long)">setDate</A></B>(int&nbsp;field, 
							long&nbsp;value)</CODE>
						<BR>
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets a Date field.</TD>
				</TR>
				<TR BGCOLOR="white" CLASS="TableRowColor">
					<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>&nbsp;void</CODE></FONT></TD>
					<TD><CODE><B><A HREF="../../../javax/microedition/pim/RepeatRule.html#setInt(int, int)">setInt</A></B>(int&nbsp;field, 
							int&nbsp;value)</CODE>
						<BR>
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets an integer 
						field.</TD>
				</TR>
			</TABLE>
			&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
			<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
				<TR BGCOLOR="#eeeeff" CLASS="TableSubHeadingColor">
					<TD><B>Methods inherited from class java.lang.Object</B></TD>
				</TR>
				<TR BGCOLOR="white" CLASS="TableRowColor">
					<TD><CODE>getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
				</TR>
			</TABLE>
		&nbsp;
		<P>
			<!-- ============ FIELD DETAIL =========== -->
			<A NAME="field_detail"><!-- --></A>
			<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
				<TR BGCOLOR="#ccccff" CLASS="TableHeadingColor">
					<TD COLSPAN="1"><FONT SIZE="+2"> <B>Field Detail</B></FONT></TD>
				</TR>
			</TABLE>
			<A NAME="FREQUENCY"><!-- --></A><H3>
				FREQUENCY</H3>
			<PRE>
public static final int <B>FREQUENCY</B></PRE>
			<DL>
				<DD>
					Field specifying the frequency of the Repeat. This field has a value of either <code>
						DAILY</code>, <code>WEEKLY</code>, <code>MONTHLY</code> or <code>YEARLY</code>. 
					The default data value associated with this field in RepeatRule is <code>DAILY</code>. 
					This field can be checked for support by <A HREF="../../../javax/microedition/pim/EventList.html#getSupportedRepeatRuleFields(int)">
						<CODE>EventList.getSupportedRepeatRuleFields(int)</CODE></A>.
					<P>
						<DL>
							<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.microedition.pim.RepeatRule.FREQUENCY">Constant 
										Field Values</A></DD></DL>
				</DD>
			</DL>
			<HR>
			<A NAME="DAY_IN_MONTH"><!-- --></A><H3>
				DAY_IN_MONTH</H3>
			<PRE>
public static final int <B>DAY_IN_MONTH</B></PRE>
			<DL>
				<DD>
					Field specifying the day of the month an Event occurs; for example, 15. This 
					value is 1 based from the first day of the month. This field can be checked for 
					support in the bit array values returned by <A HREF="../../../javax/microedition/pim/EventList.html#getSupportedRepeatRuleFields(int)">
						<CODE>EventList.getSupportedRepeatRuleFields(int)</CODE></A>.
					<P>
						<DL>
							<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.microedition.pim.RepeatRule.DAY_IN_MONTH">Constant 
										Field Values</A></DD></DL>
				</DD>
			</DL>
			<HR>
			<A NAME="DAY_IN_WEEK"><!-- --></A><H3>
				DAY_IN_WEEK</H3>
			<PRE>
public static final int <B>DAY_IN_WEEK</B></PRE>
			<DL>
				<DD>
					Field specifying the days of the week an Event occurs. To set multiple days, OR 
					the values together (e.g. <code>MONDAY | THURSDAY</code>). Retrieval of data 
					for this field can contain multiple days OR'd together in the same manner as 
					setting the value. This field can be checked for support in the bit array 
					values returned by <A HREF="../../../javax/microedition/pim/EventList.html#getSupportedRepeatRuleFields(int)">
						<CODE>EventList.getSupportedRepeatRuleFields(int)</CODE></A>.
					<P>
						<DL>
							<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.microedition.pim.RepeatRule.DAY_IN_WEEK">Constant 
										Field Values</A></DD></DL>
				</DD>
			</DL>
			<HR>
			<A NAME="DAY_IN_YEAR"><!-- --></A><H3>
				DAY_IN_YEAR</H3>
			<PRE>
public static final int <B>DAY_IN_YEAR</B></PRE>
			<DL>
				<DD>
					Field specifying the day of the year an Event occurs; for example, 134. This 
					value is 1 based from the first day of the beginning of the year. This field 
					can be checked for support in the bit array values returned by <A HREF="../../../javax/microedition/pim/EventList.html#getSupportedRepeatRuleFields(int)">
						<CODE>EventList.getSupportedRepeatRuleFields(int)</CODE></A>.
					<P>
						<DL>
							<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.microedition.pim.RepeatRule.DAY_IN_YEAR">Constant 
										Field Values</A></DD></DL>
				</DD>
			</DL>
			<HR>
			<A NAME="MONTH_IN_YEAR"><!-- --></A><H3>
				MONTH_IN_YEAR</H3>
			<PRE>
public static final int <B>MONTH_IN_YEAR</B></PRE>
			<DL>
				<DD>
					Field specifying the month in which an event occurs. To set multiple months, OR 
					the values together (e.g. <code>RepeatRule.JANUARY | RepeatRule.FEBRUARY </code>
					). Retrieval of data for this field can contain multiple months OR'd together 
					in the same manner as setting the value. This field can be checked for support 
					in the bit array values returned by <A HREF="../../../javax/microedition/pim/EventList.html#getSupportedRepeatRuleFields(int)">
						<CODE>EventList.getSupportedRepeatRuleFields(int)</CODE></A>.
					<P>
						<DL>
							<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.microedition.pim.RepeatRule.MONTH_IN_YEAR">Constant 
										Field Values</A></DD></DL>
				</DD>
			</DL>
			<HR>
			<A NAME="WEEK_IN_MONTH"><!-- --></A><H3>
				WEEK_IN_MONTH</H3>
			<PRE>
public static final int <B>WEEK_IN_MONTH</B></PRE>
			<DL>
				<DD>
					Field specifying which week in a month a particular event occurs. To set 
					multiple weeks, OR the values together (e.g. <code>FIRST | LAST | SECOND | 
						SECONDLAST</code>). Retrieval of data for this field can contain multiple 
					weeks OR'd together in the same manner as setting the value. This field can be 
					checked for support in the bit array values returned by <A HREF="../../../javax/microedition/pim/EventList.html#getSupportedRepeatRuleFields(int)">
						<CODE>EventList.getSupportedRepeatRuleFields(int)</CODE></A>.
					<P>
						<DL>
							<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.microedition.pim.RepeatRule.WEEK_IN_MONTH">Constant 
										Field Values</A></DD></DL>
				</DD>
			</DL>
			<HR>
			<A NAME="COUNT"><!-- --></A><H3>
				COUNT</H3>
			<PRE>
public static final int <B>COUNT</B></PRE>
			<DL>
				<DD>
					Field specifying the number of times this event repeats including the first 
					time, starting from the first time the event starts (derived from <code>Event.START</code>) 
					and continuing to the last date of the repeat (defined by <code>RepeatRule.END</code>).
					<code>COUNT</code> controls the number of times the event occurs during the 
					period and is used with RepeatRule interval and the frequency to calculate when 
					the event occurs. <code>RepeatRule.END</code> overrides this data if the end is 
					reached prior to the count finishing. If <CODE>COUNT</CODE> is 0 and <CODE>END</CODE>
					is <code>null</code>, the event repeats forever. This field can be checked for 
					support in the bit array values returned by <A HREF="../../../javax/microedition/pim/EventList.html#getSupportedRepeatRuleFields(int)">
						<CODE>EventList.getSupportedRepeatRuleFields(int)</CODE></A>.
					<P>
						<DL>
							<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.microedition.pim.RepeatRule.COUNT">Constant 
										Field Values</A></DD></DL>
				</DD>
			</DL>
			<HR>
			<A NAME="END"><!-- --></A><H3>
				END</H3>
			<PRE>
public static final int <B>END</B></PRE>
			<DL>
				<DD>
					Field specifying the ending date of the repeating event. Data for this field is 
					expressed in the same long value format as java.util.Date, which is 
					milliseconds since the epoch (00:00:00 GMT, January 1, 1970). This field can be 
					checked for support in the bit array values returned by <A HREF="../../../javax/microedition/pim/EventList.html#getSupportedRepeatRuleFields(int)">
						<CODE>EventList.getSupportedRepeatRuleFields(int)</CODE></A>.
					<P>
						<DL>
							<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.microedition.pim.RepeatRule.END">Constant 
										Field Values</A></DD></DL>
				</DD>
			</DL>
			<HR>
			<A NAME="INTERVAL"><!-- --></A><H3>
				INTERVAL</H3>
			<PRE>
public static final int <B>INTERVAL</B></PRE>
			<DL>
				<DD>
					Field specifying the number of iterations of the frequency between occurring 
					dates, or how often the frequency repeats. For example, for every other day the <code>
						FREQUENCY</code> is <code>DAILY</code> and <code>INTERVAL</code> is 2. The 
					default value for data associated with this field is 1. This field can be 
					checked for support in the bit array values returned by <A HREF="../../../javax/microedition/pim/EventList.html#getSupportedRepeatRuleFields(int)">
						<CODE>EventList.getSupportedRepeatRuleFields(int)</CODE></A>.
					<P>
						<DL>
							<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.microedition.pim.RepeatRule.INTERVAL">Constant 
										Field Values</A></DD></DL>
				</DD>
			</DL>
			<HR>
			<A NAME="DAILY"><!-- --></A><H3>
				DAILY</H3>
			<PRE>
public static final int <B>DAILY</B></PRE>
			<DL>
				<DD>
					Used for frequency when the Event happens every day.
					<P>
						<DL>
							<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.microedition.pim.RepeatRule.DAILY">Constant 
										Field Values</A></DD></DL>
				</DD>
			</DL>
			<HR>
			<A NAME="WEEKLY"><!-- --></A><H3>
				WEEKLY</H3>
			<PRE>
public static final int <B>WEEKLY</B></PRE>
			<DL>
				<DD>
					Used for frequency when the Event happens every week.
					<P>
						<DL>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -