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

📄 dateselector.html

📁 turbine教程
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<A NAME="DAY_SUFFIX"><!-- --></A><H3>DAY_SUFFIX</H3><PRE>public static final java.lang.String <B>DAY_SUFFIX</B></PRE><DL><DD>Suffix for day parameter.</DL><HR><A NAME="MONTH_SUFFIX"><!-- --></A><H3>MONTH_SUFFIX</H3><PRE>public static final java.lang.String <B>MONTH_SUFFIX</B></PRE><DL><DD>Suffix for month parameter.</DL><HR><A NAME="YEAR_SUFFIX"><!-- --></A><H3>YEAR_SUFFIX</H3><PRE>public static final java.lang.String <B>YEAR_SUFFIX</B></PRE><DL><DD>Suffix for year parameter.</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="DateSelector()"><!-- --></A><H3>DateSelector</H3><PRE>public <B>DateSelector</B>()</PRE><DL><DD>Constructor defaults to current date and uses the default prefix: <pre>DateSelector.DEFAULT</pre></DL><HR><A NAME="DateSelector(java.lang.String, java.util.Calendar)"><!-- --></A><H3>DateSelector</H3><PRE>public <B>DateSelector</B>(java.lang.String&nbsp;selName,                    java.util.Calendar&nbsp;useDate)</PRE><DL><DD>Constructor, uses the date set in a calendar that has been already passed in (with the date 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.</DL></DD></DL><HR><A NAME="DateSelector(java.lang.String)"><!-- --></A><H3>DateSelector</H3><PRE>public <B>DateSelector</B>(java.lang.String&nbsp;selName)</PRE><DL><DD>Constructor defaults to current date.<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/DateSelector.html">DateSelector</A> <B>setOnChange</B>(java.lang.String&nbsp;onChange)</PRE><DL><DD>Adds the onChange to all of <SELECT> tags.  This is limited to one function for all three popups and is only used when the output() methods are used.  Individual getMonth, getDay, getYear static methods will not use this setting.<DD><DL><DT><B>Parameters:</B><DD><CODE>string</CODE> - A String to use for onChange attribute.  If null, then nothing will be set.<DT><B>Returns:</B><DD>A DateSelector (self).</DL></DD></DL><HR><A NAME="setDay(int)"><!-- --></A><H3>setDay</H3><PRE>public <A HREF="../../../../org/apache/turbine/util/DateSelector.html">DateSelector</A> <B>setDay</B>(int&nbsp;day)</PRE><DL><DD>Select the day to be selected if the showDays(false) behavior is used.  Individual getMonth, getDay, getYear static methods will not use this setting.<DD><DL><DT><B>Parameters:</B><DD><CODE>day</CODE> - The day.<DT><B>Returns:</B><DD>A DateSelector (self).</DL></DD></DL><HR><A NAME="setShowDay(boolean)"><!-- --></A><H3>setShowDay</H3><PRE>public <A HREF="../../../../org/apache/turbine/util/DateSelector.html">DateSelector</A> <B>setShowDay</B>(boolean&nbsp;show)</PRE><DL><DD>Whether or not to show the days as a popup menu.  The days will be a hidden parameter and the value set with setDay is used. Individual getMonth, getDay, getYear static methods will not use this setting.<DD><DL><DT><B>Parameters:</B><DD><CODE>show</CODE> - True if the day should be shown.<DT><B>Returns:</B><DD>A DateSelector (self).</DL></DD></DL><HR><A NAME="setSelName(java.lang.String)"><!-- --></A><H3>setSelName</H3><PRE>public void <B>setSelName</B>(java.lang.String&nbsp;selName)</PRE><DL><DD>Set the selector name prefix.  Individual getMonth, getDay, getYear 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="getMonthSelector(java.lang.String)"><!-- --></A><H3>getMonthSelector</H3><PRE>public static org.apache.ecs.html.Select <B>getMonthSelector</B>(java.lang.String&nbsp;name)</PRE><DL><DD>Return a month selector.<DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - The name to use for the selected month.<DT><B>Returns:</B><DD>A select object with all the months.</DL></DD></DL><HR><A NAME="getMonthSelector(java.lang.String, java.util.Calendar)"><!-- --></A><H3>getMonthSelector</H3><PRE>public static org.apache.ecs.html.Select <B>getMonthSelector</B>(java.lang.String&nbsp;name,                                                          java.util.Calendar&nbsp;now)</PRE><DL><DD>Return a month selector. Note: The values of the month placed into the select list are the month integers starting at 0 (ie: if the user selects February, the selected value will be 1).<DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - The name to use for the selected month.<DD><CODE>now</CODE> - Calendar to start with.<DT><B>Returns:</B><DD>A select object with all the months.</DL></DD></DL><HR><A NAME="getDaySelector(java.lang.String)"><!-- --></A><H3>getDaySelector</H3><PRE>public static org.apache.ecs.html.Select <B>getDaySelector</B>(java.lang.String&nbsp;name)</PRE><DL><DD>Return a day selector.<DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - The name to use for the selected day.<DT><B>Returns:</B><DD>A select object with all the days in a month.</DL></DD></DL><HR><A NAME="getDaySelector(java.lang.String, java.util.Calendar)"><!-- --></A><H3>getDaySelector</H3><PRE>public static org.apache.ecs.html.Select <B>getDaySelector</B>(java.lang.String&nbsp;name,                                                        java.util.Calendar&nbsp;now)</PRE><DL><DD>Return a day selector.<DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - The name to use for the selected day.<DD><CODE>now</CODE> - Calendar to start with.<DT><B>Returns:</B><DD>A select object with all the days in a month.</DL></DD></DL><HR><A NAME="getYearSelector(java.lang.String)"><!-- --></A><H3>getYearSelector</H3><PRE>public static org.apache.ecs.html.Select <B>getYearSelector</B>(java.lang.String&nbsp;name)</PRE><DL><DD>Return a year selector.<DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - The name to use for the selected year.<DT><B>Returns:</B><DD>A select object with all the years starting five years from now and five years before this year.</DL></DD></DL><HR><A NAME="getYearSelector(java.lang.String, java.util.Calendar)"><!-- --></A><H3>getYearSelector</H3><PRE>public static org.apache.ecs.html.Select <B>getYearSelector</B>(java.lang.String&nbsp;name,                                                         java.util.Calendar&nbsp;now)</PRE><DL><DD>Return a year selector.<DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - The name to use for the selected year.<DD><CODE>now</CODE> - Calendar to start with.<DT><B>Returns:</B><DD>A select object with all the years starting five years from now and five years before this year.</DL></DD></DL><HR><A NAME="getYearSelector(java.lang.String, int, int, int)"><!-- --></A><H3>getYearSelector</H3><PRE>public static org.apache.ecs.html.Select <B>getYearSelector</B>(java.lang.String&nbsp;name,                                                         int&nbsp;firstYear,                                                         int&nbsp;lastYear,                                                         int&nbsp;selectedYear)</PRE><DL><DD>Return a year selector.<DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - The name to use for the selected year.<DD><CODE>firstYear</CODE> - the first (earliest) year in the selector.<DD><CODE>lastYear</CODE> - the last (latest) year in the selector.<DD><CODE>selectedYear</CODE> - the year initially selected in the Select html.<DT><B>Returns:</B><DD>A select object with all the years from firstyear to lastyear..</DL></DD></DL><HR><A NAME="setYear(int, int, int)"><!-- --></A><H3>setYear</H3><PRE>public boolean <B>setYear</B>(int&nbsp;firstYear,                       int&nbsp;lastYear,                       int&nbsp;selectedYear)</PRE><DL><DD>Select the day to be selected if the showDays(false) behavior is used.  Individual getMonth, getDay, getYear static methods will not use this setting.<DD><DL><DT><B>Parameters:</B><DD><CODE>day</CODE> - The day.<DT><B>Returns:</B><DD>A DateSelector (self).</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 + "_month"</li>  <li>selName + "_day"</li>  <li>selName + "_year"</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: month day year.<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 + "_month"</li>  <li>selName + "_day"</li>  <li>selName + "_year"</li> </ul> The output HTML will list the select lists in the following order: month day year.<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></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>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/DateSelector.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../../org/apache/turbine/util/DataStreamParser.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../../org/apache/turbine/util/DynamicURI.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>  &nbsp;&nbsp;<A HREF="DateSelector.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: &nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR>Copyright &copy; 2000-2002 Apache Software Foundation. All Rights Reserved.</BODY></HTML>

⌨️ 快捷键说明

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