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

📄 actioncontext.html

📁 FastUnit是基于Java的快速开发平台
💻 HTML
📖 第 1 页 / 共 3 页
字号:
      int rowIndex,
      <A HREF="../../../../com/fastunit/Row.html" title="com.fastunit 中的类">Row</A>&nbsp;row)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;将元素对象转换为HTML字符串。</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>Element.</B><B><A HREF="../../../../com/fastunit/Element.html#writeTd(com.fastunit.context.ActionContext, java.lang.StringBuffer, int)">writeTd</A></B>(<A HREF="../../../../com/fastunit/context/ActionContext.html" title="com.fastunit.context 中的接口">ActionContext</A>&nbsp;ac,
        java.lang.StringBuffer&nbsp;html,
        int&nbsp;rowIndex)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;将元素对应的TD对象转换为HTML字符串。</TD>
</TR>
</TABLE>
&nbsp;
<P>
<A NAME="com.fastunit.context"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<A HREF="../../../../com/fastunit/context/package-summary.html">com.fastunit.context</A> 中 <A HREF="../../../../com/fastunit/context/ActionContext.html" title="com.fastunit.context 中的接口">ActionContext</A> 的使用</FONT></TH>
</TR>
</TABLE>
&nbsp;
<P>

<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left" COLSPAN="2">返回 <A HREF="../../../../com/fastunit/context/ActionContext.html" title="com.fastunit.context 中的接口">ActionContext</A> 的 <A HREF="../../../../com/fastunit/context/package-summary.html">com.fastunit.context</A> 中的方法</FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/fastunit/context/ActionContext.html" title="com.fastunit.context 中的接口">ActionContext</A></CODE></FONT></TD>
<TD><CODE><B>LocalContext.</B><B><A HREF="../../../../com/fastunit/context/LocalContext.html#getActionContext()">getActionContext</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;取得ActionContext。</TD>
</TR>
</TABLE>
&nbsp;
<P>

<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left" COLSPAN="2">参数类型为 <A HREF="../../../../com/fastunit/context/ActionContext.html" title="com.fastunit.context 中的接口">ActionContext</A> 的 <A HREF="../../../../com/fastunit/context/package-summary.html">com.fastunit.context</A> 中的方法</FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;void</CODE></FONT></TD>
<TD><CODE><B>LocalContext.</B><B><A HREF="../../../../com/fastunit/context/LocalContext.html#setActionContext(com.fastunit.context.ActionContext)">setActionContext</A></B>(<A HREF="../../../../com/fastunit/context/ActionContext.html" title="com.fastunit.context 中的接口">ActionContext</A>&nbsp;ac)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;设置ActionContext。</TD>
</TR>
</TABLE>
&nbsp;
<P>
<A NAME="com.fastunit.support"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<A HREF="../../../../com/fastunit/support/package-summary.html">com.fastunit.support</A> 中 <A HREF="../../../../com/fastunit/context/ActionContext.html" title="com.fastunit.context 中的接口">ActionContext</A> 的使用</FONT></TH>
</TR>
</TABLE>
&nbsp;
<P>

<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left" COLSPAN="2">返回 <A HREF="../../../../com/fastunit/context/ActionContext.html" title="com.fastunit.context 中的接口">ActionContext</A> 的 <A HREF="../../../../com/fastunit/support/package-summary.html">com.fastunit.support</A> 中的方法</FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/fastunit/context/ActionContext.html" title="com.fastunit.context 中的接口">ActionContext</A></CODE></FONT></TD>
<TD><CODE><B>Action.</B><B><A HREF="../../../../com/fastunit/support/Action.html#execute(com.fastunit.context.ActionContext)">execute</A></B>(<A HREF="../../../../com/fastunit/context/ActionContext.html" title="com.fastunit.context 中的接口">ActionContext</A>&nbsp;ac)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;执行业务逻辑,Action执行失败时需要通过<A HREF="../../../../com/fastunit/context/ActionResult.html#setSuccessful(boolean)"><CODE>ActionResult.setSuccessful(false)</CODE></A>设为失败。</TD>
</TR>
</TABLE>
&nbsp;
<P>

<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left" COLSPAN="2">参数类型为 <A HREF="../../../../com/fastunit/context/ActionContext.html" title="com.fastunit.context 中的接口">ActionContext</A> 的 <A HREF="../../../../com/fastunit/support/package-summary.html">com.fastunit.support</A> 中的方法</FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/fastunit/context/ActionContext.html" title="com.fastunit.context 中的接口">ActionContext</A></CODE></FONT></TD>
<TD><CODE><B>Action.</B><B><A HREF="../../../../com/fastunit/support/Action.html#execute(com.fastunit.context.ActionContext)">execute</A></B>(<A HREF="../../../../com/fastunit/context/ActionContext.html" title="com.fastunit.context 中的接口">ActionContext</A>&nbsp;ac)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;执行业务逻辑,Action执行失败时需要通过<A HREF="../../../../com/fastunit/context/ActionResult.html#setSuccessful(boolean)"><CODE>ActionResult.setSuccessful(false)</CODE></A>设为失败。</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>SqlProvider.</B><B><A HREF="../../../../com/fastunit/support/SqlProvider.html#getSql(com.fastunit.context.ActionContext)">getSql</A></B>(<A HREF="../../../../com/fastunit/context/ActionContext.html" title="com.fastunit.context 中的接口">ActionContext</A>&nbsp;ac)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;取得SQL语句。</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>ActionInterceptor.</B><B><A HREF="../../../../com/fastunit/support/ActionInterceptor.html#intercept(com.fastunit.context.ActionContext, com.fastunit.Invocation)">intercept</A></B>(<A HREF="../../../../com/fastunit/context/ActionContext.html" title="com.fastunit.context 中的接口">ActionContext</A>&nbsp;ac,
          <A HREF="../../../../com/fastunit/Invocation.html" title="com.fastunit 中的接口">Invocation</A>&nbsp;invocation)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;调用<A HREF="../../../../com/fastunit/Invocation.html#invoke()"><CODE>Invocation.invoke()</CODE></A>使Action继续执行,可以在invoke前后执行拦截处理。</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>PageInterceptor.</B><B><A HREF="../../../../com/fastunit/support/PageInterceptor.html#intercept(com.fastunit.context.ActionContext, com.fastunit.Page)">intercept</A></B>(<A HREF="../../../../com/fastunit/context/ActionContext.html" title="com.fastunit.context 中的接口">ActionContext</A>&nbsp;ac,
          <A HREF="../../../../com/fastunit/Page.html" title="com.fastunit 中的接口">Page</A>&nbsp;page)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;可用来动态设置Page对象的属性,需要调用<A HREF="../../../../com/fastunit/Page.html#write(com.fastunit.context.ActionContext)"><CODE>page.write(ac)</CODE></A>方法使页面继续显示。</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>ListStatUI.</B><B><A HREF="../../../../com/fastunit/support/ListStatUI.html#intercept(com.fastunit.context.ActionContext, com.fastunit.Unit)">intercept</A></B>(<A HREF="../../../../com/fastunit/context/ActionContext.html" title="com.fastunit.context 中的接口">ActionContext</A>&nbsp;ac,
          <A HREF="../../../../com/fastunit/Unit.html" title="com.fastunit 中的接口">Unit</A>&nbsp;unit)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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>UnitInterceptor.</B><B><A HREF="../../../../com/fastunit/support/UnitInterceptor.html#intercept(com.fastunit.context.ActionContext, com.fastunit.Unit)">intercept</A></B>(<A HREF="../../../../com/fastunit/context/ActionContext.html" title="com.fastunit.context 中的接口">ActionContext</A>&nbsp;ac,
          <A HREF="../../../../com/fastunit/Unit.html" title="com.fastunit 中的接口">Unit</A>&nbsp;unit)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;可用来动态设置Unit对象或所属Element对象的属性,需要通过<A HREF="../../../../com/fastunit/Unit.html#write(com.fastunit.context.ActionContext)"><CODE>Unit.write(ac)</CODE></A>方法返回单元解析结果。</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>Validator.</B><B><A HREF="../../../../com/fastunit/support/Validator.html#validate(com.fastunit.context.ActionContext, java.lang.String, java.lang.String, int)">validate</A></B>(<A HREF="../../../../com/fastunit/context/ActionContext.html" title="com.fastunit.context 中的接口">ActionContext</A>&nbsp;ac,
         java.lang.String&nbsp;value,
         java.lang.String&nbsp;expression,
         int&nbsp;rowIndex)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;单值验证,返回非null的值表示验证失败。</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>Validator.</B><B><A HREF="../../../../com/fastunit/support/Validator.html#validate(com.fastunit.context.ActionContext, java.lang.String, java.lang.String, java.lang.String)">validate</A></B>(<A HREF="../../../../com/fastunit/context/ActionContext.html" title="com.fastunit.context 中的接口">ActionContext</A>&nbsp;ac,
         java.lang.String&nbsp;from,
         java.lang.String&nbsp;to,
         java.lang.String&nbsp;expression)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;范围验证,仅对查询单元有效(如数字范围、日期范围),返回非null的值表示验证失败。</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>ElementWriter.</B><B><A HREF="../../../../com/fastunit/support/ElementWriter.html#write(com.fastunit.context.ActionContext, java.lang.StringBuffer, com.fastunit.view.element.ElementComponent, com.fastunit.Row)">write</A></B>(<A HREF="../../../../com/fastunit/context/ActionContext.html" title="com.fastunit.context 中的接口">ActionContext</A>&nbsp;ac,
      java.lang.StringBuffer&nbsp;html,
      com.fastunit.view.element.ElementComponent&nbsp;ec,
      <A HREF="../../../../com/fastunit/Row.html" title="com.fastunit 中的类">Row</A>&nbsp;row)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;将元素对象转换为HTML字符串。</TD>
</TR>
</TABLE>
&nbsp;
<P>
<A NAME="com.fastunit.support.action"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<A HREF="../../../../com/fastunit/support/action/package-summary.html">com.fastunit.support.action</A> 中 <A HREF="../../../../com/fastunit/context/ActionContext.html" title="com.fastunit.context 中的接口">ActionContext</A> 的使用</FONT></TH>
</TR>
</TABLE>
&nbsp;
<P>

<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left" COLSPAN="2">返回 <A HREF="../../../../com/fastunit/context/ActionContext.html" title="com.fastunit.context 中的接口">ActionContext</A> 的 <A HREF="../../../../com/fastunit/support/action/package-summary.html">com.fastunit.support.action</A> 中的方法</FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/fastunit/context/ActionContext.html" title="com.fastunit.context 中的接口">ActionContext</A></CODE></FONT></TD>
<TD><CODE><B>BackAction.</B><B><A HREF="../../../../com/fastunit/support/action/BackAction.html#execute(com.fastunit.context.ActionContext)">execute</A></B>(<A HREF="../../../../com/fastunit/context/ActionContext.html" title="com.fastunit.context 中的接口">ActionContext</A>&nbsp;ac)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;设置转向URL。</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/fastunit/context/ActionContext.html" title="com.fastunit.context 中的接口">ActionContext</A></CODE></FONT></TD>
<TD><CODE><B>ClearAction.</B><B><A HREF="../../../../com/fastunit/support/action/ClearAction.html#execute(com.fastunit.context.ActionContext)">execute</A></B>(<A HREF="../../../../com/fastunit/context/ActionContext.html" title="com.fastunit.context 中的接口">ActionContext</A>&nbsp;ac)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;清除单元的缓存数据。</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/fastunit/context/ActionContext.html" title="com.fastunit.context 中的接口">ActionContext</A></CODE></FONT></TD>
<TD><CODE><B>DownloadAction.</B><B><A HREF="../../../../com/fastunit/support/action/DownloadAction.html#execute(com.fastunit.context.ActionContext)">execute</A></B>(<A HREF="../../../../com/fastunit/context/ActionContext.html" title="com.fastunit.context 中的接口">ActionContext</A>&nbsp;ac)</CODE>

⌨️ 快捷键说明

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