📄 timeselector.html
字号:
<DD>Set the time format to 12 or 24 hour. Individual getHour, getMinute, getSecond, getAMPM static methods will not use this setting.<DD><DL><DT><B>Parameters:</B><DD><CODE>format</CODE> - Time format.<DT><B>Returns:</B><DD>A TimeSelector (self).</DL></DD></DL><HR><A NAME="setShowSeconds(boolean)"><!-- --></A><H3>setShowSeconds</H3><PRE>public <A HREF="../../../../org/apache/turbine/util/TimeSelector.html">TimeSelector</A> <B>setShowSeconds</B>(boolean show)</PRE><DL><DD>Whether or not to show the seconds as a popup menu. The seconds will be a hidden parameter and the value set with setSeconds is used. Individual getHour, getMinute, getSecond, getAMPM static methods will not use this setting.<DD><DL><DT><B>Parameters:</B><DD><CODE>show</CODE> - True if the second should be shown.<DT><B>Returns:</B><DD>A TimeSelector (self).</DL></DD></DL><HR><A NAME="setSelName(java.lang.String)"><!-- --></A><H3>setSelName</H3><PRE>public void <B>setSelName</B>(java.lang.String selName)</PRE><DL><DD>Set the selector name prefix. Individual getHour, getMinute, getSeconds, getAMPM static methods will not use this setting.<DD><DL><DT><B>Parameters:</B><DD><CODE>selname</CODE> - A String with the select name prefix.</DL></DD></DL><HR><A NAME="getSelName()"><!-- --></A><H3>getSelName</H3><PRE>public java.lang.String <B>getSelName</B>()</PRE><DL><DD>Get the selector name prefix.<DD><DL><DT><B>Returns:</B><DD>A String with the select name prefix.</DL></DD></DL><HR><A NAME="getSecondSelector(java.lang.String)"><!-- --></A><H3>getSecondSelector</H3><PRE>public static org.apache.ecs.html.Select <B>getSecondSelector</B>(java.lang.String name)</PRE><DL><DD>Return a second selector.<DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - The name to use for the selected second.<DT><B>Returns:</B><DD>A select object with second options.</DL></DD></DL><HR><A NAME="getSecondSelector(java.lang.String, java.util.Calendar)"><!-- --></A><H3>getSecondSelector</H3><PRE>public static org.apache.ecs.html.Select <B>getSecondSelector</B>(java.lang.String name, java.util.Calendar now)</PRE><DL><DD>Return a second selector.<DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - The name to use for the selected second.<DD><CODE>now</CODE> - Calendar to start with.<DT><B>Returns:</B><DD>A select object with second options.</DL></DD></DL><HR><A NAME="getSecondSelector(java.lang.String, java.util.Calendar, int)"><!-- --></A><H3>getSecondSelector</H3><PRE>public static org.apache.ecs.html.Select <B>getSecondSelector</B>(java.lang.String name, java.util.Calendar now, int interval)</PRE><DL><DD>Return a second selector.<DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - The name to use for the selected second.<DD><CODE>now</CODE> - Calendar to start with.<DD><CODE>interval</CODE> - Interval between options.<DT><B>Returns:</B><DD>A select object with second options.</DL></DD></DL><HR><A NAME="getMinuteSelector(java.lang.String)"><!-- --></A><H3>getMinuteSelector</H3><PRE>public static org.apache.ecs.html.Select <B>getMinuteSelector</B>(java.lang.String name)</PRE><DL><DD>Return a minute selector.<DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - The name to use for the selected minute.<DT><B>Returns:</B><DD>A select object with minute options.</DL></DD></DL><HR><A NAME="getMinuteSelector(java.lang.String, java.util.Calendar)"><!-- --></A><H3>getMinuteSelector</H3><PRE>public static org.apache.ecs.html.Select <B>getMinuteSelector</B>(java.lang.String name, java.util.Calendar now)</PRE><DL><DD>Return a minute selector.<DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - The name to use for the selected minute.<DT><B>Returns:</B><DD>A select object with minute options.</DL></DD></DL><HR><A NAME="getMinuteSelector(java.lang.String, java.util.Calendar, int)"><!-- --></A><H3>getMinuteSelector</H3><PRE>public static org.apache.ecs.html.Select <B>getMinuteSelector</B>(java.lang.String name, java.util.Calendar now, int interval)</PRE><DL><DD>Return a minute selector.<DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - The name to use for the selected minute.<DD><CODE>now</CODE> - Calendar to start with.<DD><CODE>interval</CODE> - Interval between options.<DT><B>Returns:</B><DD>A select object with minute options.</DL></DD></DL><HR><A NAME="getHourSelector(java.lang.String)"><!-- --></A><H3>getHourSelector</H3><PRE>public static org.apache.ecs.html.Select <B>getHourSelector</B>(java.lang.String name)</PRE><DL><DD>Return an 12 hour selector.<DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - The name to use for the selected hour.<DT><B>Returns:</B><DD>A select object with all the hours.</DL></DD></DL><HR><A NAME="getHourSelector(java.lang.String, java.util.Calendar)"><!-- --></A><H3>getHourSelector</H3><PRE>public static org.apache.ecs.html.Select <B>getHourSelector</B>(java.lang.String name, java.util.Calendar now)</PRE><DL><DD>Return an 12 hour selector.<DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - The name to use for the selected hour.<DD><CODE>now</CODE> - Calendar to start with.<DT><B>Returns:</B><DD>A select object with all the hours.</DL></DD></DL><HR><A NAME="getHourSelector(java.lang.String, java.util.Calendar, int)"><!-- --></A><H3>getHourSelector</H3><PRE>public static org.apache.ecs.html.Select <B>getHourSelector</B>(java.lang.String name, java.util.Calendar now, int format)</PRE><DL><DD>Return an hour selector (either 12hr or 24hr depending on <code>format</code>.<DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - The name to use for the selected hour.<DD><CODE>now</CODE> - Calendar to start with.<DD><CODE>format</CODE> - Time format.<DT><B>Returns:</B><DD>A select object with all the hours.</DL></DD></DL><HR><A NAME="getAMPMSelector(java.lang.String)"><!-- --></A><H3>getAMPMSelector</H3><PRE>public static org.apache.ecs.html.Select <B>getAMPMSelector</B>(java.lang.String name)</PRE><DL><DD>Return an am/pm selector.<DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - The name to use for the selected am/pm.<DT><B>Returns:</B><DD>A select object with am/pm</DL></DD></DL><HR><A NAME="getAMPMSelector(java.lang.String, java.util.Calendar)"><!-- --></A><H3>getAMPMSelector</H3><PRE>public static org.apache.ecs.html.Select <B>getAMPMSelector</B>(java.lang.String name, java.util.Calendar now)</PRE><DL><DD>Return an am/pm selector.<DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - The name to use for the selected am/pm.<DD><CODE>now</CODE> - Calendar to start with.<DT><B>Returns:</B><DD>A select object with am/pm.</DL></DD></DL><HR><A NAME="output()"><!-- --></A><H3>output</H3><PRE>public java.lang.String <B>output</B>()</PRE><DL><DD>Used to build the popupmenu in HTML. The properties set in the object are used to generate the correct HTML. The selName attribute is used to seed the names of the select lists. The names will be generated as follows: <ul> <li>selName + "_hour"</li> <li>selName + "_minute"</li> <li>selName + "_ampm"</li> </ul> If onChange was set it is also used in the generation of the output. The output HTML will list the select lists in the following order: hour minute ampm. If setShowSeconds(true) is used then an addition second select box is produced after the minute select box. If setTimeFormat(TimeSelector.TWENTY_FOUR_HOUR) is used then the ampm select box is omitted.<DD><DL><DT><B>Returns:</B><DD>A String with the correct HTML for the date selector.</DL></DD></DL><HR><A NAME="toString()"><!-- --></A><H3>toString</H3><PRE>public java.lang.String <B>toString</B>()</PRE><DL><DD>Used to build the popupmenu in HTML. The properties set in the object are used to generate the correct HTML. The selName attribute is used to seed the names of the select lists. The names will be generated as follows: <ul> <li>selName + "_hour"</li> <li>selName + "_minute"</li> <li>selName + "_ampm"</li> </ul> If onChange was set it is also used in the generation of the output. The output HTML will list the select lists in the following order: hour minute ampm. If setShowSeconds(true) is used then an addition second select box is produced after the minute select box. If setTimeFormat(TimeSelector.TWENTY_FOUR_HOUR) is used then the ampm select box is omitted.<DD><DL><DT><B>Overrides:</B><DD><CODE>toString</CODE> in class <CODE>java.lang.Object</CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>A String with the correct HTML for the date selector.</DL></DD></DL><HR><A NAME="ecsOutput()"><!-- --></A><H3>ecsOutput</H3><PRE>public org.apache.ecs.ElementContainer <B>ecsOutput</B>()</PRE><DL><DD>Return an ECS container with the select objects inside.<DD><DL><DT><B>Returns:</B><DD>An ECS container.</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=2 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="class-use/TimeSelector.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </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></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../org/apache/turbine/util/SystemError.html"><B>PREV CLASS</B></A> <A HREF="../../../../org/apache/turbine/util/TSVParser.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="TimeSelector.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR>Copyright © 2000-2002 Apache Software Foundation. All Rights Reserved.</BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -