📄 submit.java
字号:
// Decompiled by Jad v1.5.8e2. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://kpdus.tripod.com/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi space
// Source File Name: Submit.java
package org.apache.struts2.components;
import com.opensymphony.xwork2.util.ValueStack;
import java.io.Writer;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
// Referenced classes of package org.apache.struts2.components:
// FormButton, RemoteUICallBean
public class Submit extends FormButton
implements RemoteUICallBean
{
private static final Log LOG = LogFactory.getLog(org/apache/struts2/components/Submit);
public static final String TEMPLATE = "submit";
protected String href;
protected String errorText;
protected String executeScripts;
protected String loadingText;
protected String listenTopics;
protected String handler;
protected String formId;
protected String formFilter;
protected String src;
protected String notifyTopics;
protected String showErrorTransportText;
protected String indicator;
protected String showLoadingText;
protected String beforeLoading;
protected String afterLoading;
protected String targets;
public Submit(ValueStack stack, HttpServletRequest request, HttpServletResponse response)
{
super(stack, request, response);
}
protected String getDefaultTemplate()
{
return "submit";
}
public void evaluateParams()
{
if (key == null && value == null)
value = "Submit";
if (key != null && value == null)
value = (new StringBuilder()).append("%{getText('").append(key).append("')}").toString();
super.evaluateParams();
}
public void evaluateExtraParams()
{
super.evaluateExtraParams();
if (href != null)
addParameter("href", findString(href));
if (errorText != null)
addParameter("errorText", findString(errorText));
if (loadingText != null)
addParameter("loadingText", findString(loadingText));
if (afterLoading != null)
addParameter("afterLoading", findString(afterLoading));
if (beforeLoading != null)
addParameter("beforeLoading", findString(beforeLoading));
if (executeScripts != null)
addParameter("executeScripts", findValue(executeScripts, java/lang/Boolean));
if (listenTopics != null)
addParameter("listenTopics", findString(listenTopics));
if (notifyTopics != null)
addParameter("notifyTopics", findString(notifyTopics));
if (handler != null)
addParameter("handler", findString(handler));
if (formId != null)
addParameter("formId", findString(formId));
if (formFilter != null)
addParameter("formFilter", findString(formFilter));
if (src != null)
addParameter("src", findString(src));
if (indicator != null)
addParameter("indicator", findString(indicator));
if (targets != null)
addParameter("targets", findString(targets));
if (showLoadingText != null)
addParameter("showLoadingText", findString(showLoadingText));
}
protected boolean supportsImageType()
{
return true;
}
public boolean end(Writer writer, String body)
{
evaluateParams();
addParameter("body", body);
mergeTemplate(writer, buildTemplateName(template, getDefaultTemplate()));
popComponentStack();
break MISSING_BLOCK_LABEL_63;
Exception e;
e;
LOG.error("error when rendering", e);
popComponentStack();
break MISSING_BLOCK_LABEL_63;
Exception exception;
exception;
popComponentStack();
throw exception;
return false;
}
public void setListenTopics(String listenTopics)
{
this.listenTopics = listenTopics;
}
public void setTheme(String theme)
{
super.setTheme(theme);
}
public void setHref(String href)
{
this.href = href;
}
public void setErrorText(String errorText)
{
this.errorText = errorText;
}
public void setAfterLoading(String afterLoading)
{
this.afterLoading = afterLoading;
}
public void setBeforeLoading(String beforeLoading)
{
this.beforeLoading = beforeLoading;
}
public void setExecuteScripts(String executeScripts)
{
this.executeScripts = executeScripts;
}
public void setLoadingText(String loadingText)
{
this.loadingText = loadingText;
}
public void setHandler(String handler)
{
this.handler = handler;
}
public void setFormFilter(String formFilter)
{
this.formFilter = formFilter;
}
public void setFormId(String formId)
{
this.formId = formId;
}
public void setSrc(String src)
{
this.src = src;
}
public void setTargets(String targets)
{
this.targets = targets;
}
public void setNotifyTopics(String notifyTopics)
{
this.notifyTopics = notifyTopics;
}
public void setShowErrorTransportText(String showErrorTransportText)
{
this.showErrorTransportText = showErrorTransportText;
}
public void setIndicator(String indicator)
{
this.indicator = indicator;
}
public void setShowLoadingText(String showLoadingText)
{
this.showLoadingText = showLoadingText;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -