📄 tabbedpanel.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: TabbedPanel.java
package org.apache.struts2.components;
import com.opensymphony.xwork2.util.ValueStack;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
// Referenced classes of package org.apache.struts2.components:
// ClosingUIBean
public class TabbedPanel extends ClosingUIBean
{
public static final String TEMPLATE = "tabbedpanel";
public static final String TEMPLATE_CLOSE = "tabbedpanel-close";
private static final String COMPONENT_NAME = org/apache/struts2/components/TabbedPanel.getName();
protected String selectedTab;
protected String closeButton;
protected String doLayout;
protected String templateCssPath;
protected String useSelectedTabCookie;
public TabbedPanel(ValueStack stack, HttpServletRequest request, HttpServletResponse response)
{
super(stack, request, response);
}
protected void evaluateExtraParams()
{
super.evaluateExtraParams();
if (selectedTab != null)
addParameter("selectedTab", findString(selectedTab));
if (closeButton != null)
addParameter("closeButton", findString(closeButton));
addParameter("doLayout", doLayout == null ? ((Object) (Boolean.FALSE)) : findValue(doLayout, java/lang/Boolean));
if (labelPosition != null)
{
if (labelPosition.equalsIgnoreCase("left"))
labelPosition = "left-h";
if (labelPosition.equalsIgnoreCase("right"))
labelPosition = "right-h";
addParameter("labelPosition", null);
addParameter("labelPosition", labelPosition);
}
if (templateCssPath != null)
addParameter("templateCssPath", findString(templateCssPath));
if (useSelectedTabCookie != null)
addParameter("useSelectedTabCookie", findString(useSelectedTabCookie));
}
public String getDefaultOpenTemplate()
{
return "tabbedpanel";
}
protected String getDefaultTemplate()
{
return "tabbedpanel-close";
}
public String getComponentName()
{
return COMPONENT_NAME;
}
public void setId(String id)
{
super.setId(id);
}
public void setSelectedTab(String selectedTab)
{
this.selectedTab = selectedTab;
}
public void setCloseButton(String closeButton)
{
this.closeButton = closeButton;
}
public void setDoLayout(String doLayout)
{
this.doLayout = doLayout;
}
public void setTemplateCssPath(String templateCssPath)
{
this.templateCssPath = templateCssPath;
}
public void setUseSelectedTabCookie(String useSelectedTabCookie)
{
this.useSelectedTabCookie = useSelectedTabCookie;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -