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

📄 timeselector.html

📁 turbine教程
💻 HTML
📖 第 1 页 / 共 3 页
字号:
</TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;org.apache.ecs.html.Select</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/apache/turbine/util/TimeSelector.html#getSecondSelector(java.lang.String)">getSecondSelector</A></B>(java.lang.String&nbsp;name)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return a second selector.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;org.apache.ecs.html.Select</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/apache/turbine/util/TimeSelector.html#getSecondSelector(java.lang.String, java.util.Calendar)">getSecondSelector</A></B>(java.lang.String&nbsp;name,                  java.util.Calendar&nbsp;now)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return a second selector.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;org.apache.ecs.html.Select</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/apache/turbine/util/TimeSelector.html#getSecondSelector(java.lang.String, java.util.Calendar, int)">getSecondSelector</A></B>(java.lang.String&nbsp;name,                  java.util.Calendar&nbsp;now,                  int&nbsp;interval)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return a second selector.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/apache/turbine/util/TimeSelector.html#getSelName()">getSelName</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the selector name prefix.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/apache/turbine/util/TimeSelector.html#output()">output</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Used to build the popupmenu in HTML.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../../org/apache/turbine/util/TimeSelector.html">TimeSelector</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/apache/turbine/util/TimeSelector.html#setMinuteInterval(int)">setMinuteInterval</A></B>(int&nbsp;minutes)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the interval between options in the minute select box.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../../org/apache/turbine/util/TimeSelector.html">TimeSelector</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/apache/turbine/util/TimeSelector.html#setOnChange(java.lang.String)">setOnChange</A></B>(java.lang.String&nbsp;onChange)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Adds the onChange to all of <code>&lt;SELECT&gt;</code> tags.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../../org/apache/turbine/util/TimeSelector.html">TimeSelector</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/apache/turbine/util/TimeSelector.html#setSecondInterval(int)">setSecondInterval</A></B>(int&nbsp;seconds)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the interval between options in the second select box.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../../org/apache/turbine/util/TimeSelector.html">TimeSelector</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/apache/turbine/util/TimeSelector.html#setSeconds(int)">setSeconds</A></B>(int&nbsp;seconds)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Select the second to be selected if the showSeconds(false) behavior is used.</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="../../../../org/apache/turbine/util/TimeSelector.html#setSelName(java.lang.String)">setSelName</A></B>(java.lang.String&nbsp;selName)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the selector name prefix.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../../org/apache/turbine/util/TimeSelector.html">TimeSelector</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/apache/turbine/util/TimeSelector.html#setShowSeconds(boolean)">setShowSeconds</A></B>(boolean&nbsp;show)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Whether or not to show the seconds as a popup menu.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../../org/apache/turbine/util/TimeSelector.html">TimeSelector</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/apache/turbine/util/TimeSelector.html#setTimeFormat(int)">setTimeFormat</A></B>(int&nbsp;format)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the time format to 12 or 24 hour.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/apache/turbine/util/TimeSelector.html#toString()">toString</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Used to build the popupmenu in HTML.</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>clone, equals, finalize, getClass, hashCode, notify, notifyAll, 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="DEFAULT_PREFIX"><!-- --></A><H3>DEFAULT_PREFIX</H3><PRE>public static final java.lang.String <B>DEFAULT_PREFIX</B></PRE><DL><DD>Prefix for time names.</DL><HR><A NAME="HOUR_SUFFIX"><!-- --></A><H3>HOUR_SUFFIX</H3><PRE>public static final java.lang.String <B>HOUR_SUFFIX</B></PRE><DL><DD>Suffix for hour parameter.</DL><HR><A NAME="MINUTE_SUFFIX"><!-- --></A><H3>MINUTE_SUFFIX</H3><PRE>public static final java.lang.String <B>MINUTE_SUFFIX</B></PRE><DL><DD>Suffix for minute parameter.</DL><HR><A NAME="SECOND_SUFFIX"><!-- --></A><H3>SECOND_SUFFIX</H3><PRE>public static final java.lang.String <B>SECOND_SUFFIX</B></PRE><DL><DD>Suffix for second parameter.</DL><HR><A NAME="AMPM_SUFFIX"><!-- --></A><H3>AMPM_SUFFIX</H3><PRE>public static final java.lang.String <B>AMPM_SUFFIX</B></PRE><DL><DD>Suffix for am/pm parameter.</DL><HR><A NAME="TWELVE_HOUR"><!-- --></A><H3>TWELVE_HOUR</H3><PRE>public static final int <B>TWELVE_HOUR</B></PRE><DL><DD>Constant for 12hr format</DL><HR><A NAME="TWENTY_FOUR_HOUR"><!-- --></A><H3>TWENTY_FOUR_HOUR</H3><PRE>public static final int <B>TWENTY_FOUR_HOUR</B></PRE><DL><DD>Constant for 24hr format</DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="TimeSelector()"><!-- --></A><H3>TimeSelector</H3><PRE>public <B>TimeSelector</B>()</PRE><DL><DD>Constructor defaults to current date/time and uses the default prefix: <pre>TimeSelector.DEFAULT</pre></DL><HR><A NAME="TimeSelector(java.lang.String, java.util.Calendar)"><!-- --></A><H3>TimeSelector</H3><PRE>public <B>TimeSelector</B>(java.lang.String&nbsp;selName,                    java.util.Calendar&nbsp;useDate)</PRE><DL><DD>Constructor, uses the date/time set in the calendar passed in (with the date/time set correctly).<DD><DL><DT><B>Parameters:</B><DD><CODE>selName</CODE> - A String with the selector name.<DD><CODE>useDate</CODE> - A Calendar with a date/time.</DL></DD></DL><HR><A NAME="TimeSelector(java.lang.String)"><!-- --></A><H3>TimeSelector</H3><PRE>public <B>TimeSelector</B>(java.lang.String&nbsp;selName)</PRE><DL><DD>Constructor defaults to current date/time.<DD><DL><DT><B>Parameters:</B><DD><CODE>selName</CODE> - A String with the selector name.</DL></DD></DL><!-- ============ 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="setOnChange(java.lang.String)"><!-- --></A><H3>setOnChange</H3><PRE>public <A HREF="../../../../org/apache/turbine/util/TimeSelector.html">TimeSelector</A> <B>setOnChange</B>(java.lang.String&nbsp;onChange)</PRE><DL><DD>Adds the onChange to all of <code>&lt;SELECT&gt;</code> tags. This is limited to one function for all three popups and is only used when the output() methods are used.  Individual getHour, getMinute, getSecond, getAMPM static methods will not use this setting.<DD><DL><DT><B>Parameters:</B><DD><CODE>onChange</CODE> - A String to use for onChange attribute.  If null, then nothing will be set.<DT><B>Returns:</B><DD>A TimeSelector (self).</DL></DD></DL><HR><A NAME="setSeconds(int)"><!-- --></A><H3>setSeconds</H3><PRE>public <A HREF="../../../../org/apache/turbine/util/TimeSelector.html">TimeSelector</A> <B>setSeconds</B>(int&nbsp;seconds)</PRE><DL><DD>Select the second to be selected if the showSeconds(false) behavior is used.  Individual getHour, getMinute, getSecond, getAMPM static methods will not use this setting.<DD><DL><DT><B>Parameters:</B><DD><CODE>seconds</CODE> - The second.<DT><B>Returns:</B><DD>A TimeSelector (self).</DL></DD></DL><HR><A NAME="setMinuteInterval(int)"><!-- --></A><H3>setMinuteInterval</H3><PRE>public <A HREF="../../../../org/apache/turbine/util/TimeSelector.html">TimeSelector</A> <B>setMinuteInterval</B>(int&nbsp;minutes)</PRE><DL><DD>Set the interval between options in the minute select box. Individual getHour, getMinute, getSecond, getAMPM static methods will not use this setting.<DD><DL><DT><B>Parameters:</B><DD><CODE>minutes</CODE> - Interval in minutes.<DT><B>Returns:</B><DD>A TimeSelector (self).</DL></DD></DL><HR><A NAME="setSecondInterval(int)"><!-- --></A><H3>setSecondInterval</H3><PRE>public <A HREF="../../../../org/apache/turbine/util/TimeSelector.html">TimeSelector</A> <B>setSecondInterval</B>(int&nbsp;seconds)</PRE><DL><DD>Set the interval between options in the second select box. Individual getHour, getMinute, getSecond, getAMPM static methods will not use this setting.<DD><DL><DT><B>Parameters:</B><DD><CODE>seconds</CODE> - Interval in seconds.<DT><B>Returns:</B><DD>A TimeSelector (self).</DL></DD></DL><HR><A NAME="setTimeFormat(int)"><!-- --></A><H3>setTimeFormat</H3><PRE>public <A HREF="../../../../org/apache/turbine/util/TimeSelector.html">TimeSelector</A> <B>setTimeFormat</B>(int&nbsp;format)</PRE><DL>

⌨️ 快捷键说明

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