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

📄 templatescreen.html

📁 turbine教程
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<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, toString, wait, wait, wait</CODE></TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><!-- ========= 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="TemplateScreen()"><!-- --></A><H3>TemplateScreen</H3><PRE>public <B>TemplateScreen</B>()</PRE><DL></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="doBuildTemplate(org.apache.turbine.util.RunData)"><!-- --></A><H3>doBuildTemplate</H3><PRE>protected abstract void <B>doBuildTemplate</B>(<A HREF="../../../../../org/apache/turbine/util/RunData.html">RunData</A>&nbsp;data)                                 throws java.lang.Exception</PRE><DL><DD>This method should be overidden by subclasses that wish to add specific business logic.<DD><DL><DT><B>Parameters:</B><DD><CODE>data</CODE> - Turbine information.<DT><B>Throws:</B><DD><CODE>Exception,</CODE> - a generic exception.</DL></DD></DL><HR><A NAME="buildTemplate(org.apache.turbine.util.RunData)"><!-- --></A><H3>buildTemplate</H3><PRE>public abstract org.apache.ecs.ConcreteElement <B>buildTemplate</B>(<A HREF="../../../../../org/apache/turbine/util/RunData.html">RunData</A>&nbsp;data)                                                      throws java.lang.Exception</PRE><DL><DD>This method should be implemented by Base template classes.  It should contain the specific template service code to generate the template.<DD><DL><DT><B>Parameters:</B><DD><CODE>data</CODE> - Turbine information.<DT><B>Returns:</B><DD>A ConcreteElement.<DT><B>Throws:</B><DD><CODE>Exception,</CODE> - a generic exception.</DL></DD></DL><HR><A NAME="doPostBuildTemplate(org.apache.turbine.util.RunData)"><!-- --></A><H3>doPostBuildTemplate</H3><PRE>protected void <B>doPostBuildTemplate</B>(<A HREF="../../../../../org/apache/turbine/util/RunData.html">RunData</A>&nbsp;data)</PRE><DL><DD>This method can be overridden to write code that executes when the template has been built (called from a finally clause, so executes regardless of whether an exception is thrown or not)</DL><HR><A NAME="doBuild(org.apache.turbine.util.RunData)"><!-- --></A><H3>doBuild</H3><PRE>protected org.apache.ecs.ConcreteElement <B>doBuild</B>(<A HREF="../../../../../org/apache/turbine/util/RunData.html">RunData</A>&nbsp;data)                                          throws java.lang.Exception</PRE><DL><DD>This method is called by the Screenloader to construct the Screen.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../org/apache/turbine/modules/Screen.html#doBuild(org.apache.turbine.util.RunData)">doBuild</A></CODE> in class <CODE><A HREF="../../../../../org/apache/turbine/modules/Screen.html">Screen</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>data</CODE> - Turbine information.<DT><B>Returns:</B><DD>A ConcreteElement.<DT><B>Throws:</B><DD><CODE>Exception,</CODE> - a generic exception.</DL></DD></DL><HR><A NAME="setTemplate(org.apache.turbine.util.RunData, java.lang.String)"><!-- --></A><H3>setTemplate</H3><PRE>public static void <B>setTemplate</B>(<A HREF="../../../../../org/apache/turbine/util/RunData.html">RunData</A>&nbsp;data,                               java.lang.String&nbsp;template)</PRE><DL><DD>This method is used when you want to short circuit a Screen and change the template that will be executed next. <b>Note that the current context will be applied to the next template that is executed. If you want to have the context executed for the next screen, to be the same one as the next screen, then you should use the TemplateScreen.doRedirect() method.</b><DD><DL><DT><B>Parameters:</B><DD><CODE>data</CODE> - Turbine information.<DD><CODE>template</CODE> - The name of the next template.</DL></DD></DL><HR><A NAME="doRedirect(org.apache.turbine.util.RunData, java.lang.String, java.lang.String)"><!-- --></A><H3>doRedirect</H3><PRE>public void <B>doRedirect</B>(<A HREF="../../../../../org/apache/turbine/util/RunData.html">RunData</A>&nbsp;data,                       java.lang.String&nbsp;screen,                       java.lang.String&nbsp;template)                throws java.lang.Exception</PRE><DL><DD>You can call this within a Screen to cause an internal redirect to happen.  It essentially allows you to stop execution in one Screen and instantly execute another Screen.  Don't worry, this does not do a HTTP redirect and also if you have anything added in the Context, it will get carried over. <p> This class is useful if you have a Screen that submits to another Screen and you want it to do error validation before executing the other Screen.  If there is an error, you can doRedirect() back to the original Screen.<DD><DL><DT><B>Parameters:</B><DD><CODE>data</CODE> - Turbine information.<DD><CODE>screen</CODE> - Name of screen to redirect to.<DD><CODE>template</CODE> - Name of template.<DT><B>Throws:</B><DD><CODE>Exception,</CODE> - a generic exception.</DL></DD></DL><HR><A NAME="doRedirect(org.apache.turbine.util.RunData, java.lang.String)"><!-- --></A><H3>doRedirect</H3><PRE>public void <B>doRedirect</B>(<A HREF="../../../../../org/apache/turbine/util/RunData.html">RunData</A>&nbsp;data,                       java.lang.String&nbsp;template)                throws java.lang.Exception</PRE><DL><DD>You can call this within a Screen to cause an internal redirect to happen.  It essentially allows you to stop execution in one Screen and instantly execute another Screen.  Don't worry, this does not do a HTTP redirect and also if you have anything added in the Context, it will get carried over. <p> This class is useful if you have a Screen that submits to another Screen and you want it to do error validation before executing the other Screen.  If there is an error, you can doRedirect() back to the original Screen.<DD><DL><DT><B>Parameters:</B><DD><CODE>data</CODE> - Turbine information.<DD><CODE>template</CODE> - Name of template.<DT><B>Throws:</B><DD><CODE>Exception,</CODE> - a generic exception.</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>&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/TemplateScreen.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/modules/screens/RawScreen.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../../../org/apache/turbine/modules/screens/VelocityDirectScreen.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="TemplateScreen.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;FIELD&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;FIELD&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 + -