public class TabbedPanel extends AbstractTopicsBean
The tabbedpanel widget is primarily an AJAX component, where each tab can either be local content or remote content.
If the useSelectedTabCookie attribute is set to true, the id of the selected tab is saved in a cookie on activation. When coming back to this view, the cookie is read and the tab will be activated again, unless an actual value for the selectedTab attribute is specified.
Examples
<sj:tabbedpanel id="mytabs" animate="true" collapsible="true" useSelectedTabCookie="true"> <sj:tab id="tab1" target="tone" label="Tab One"/> <sj:tab id="tab2" target="ttwo" label="Tab Two"/> <sj:tab id="tab3" target="tthree" label="Tab Three"/> <div id="tone"> Test 1 </div> <div id="ttwo"> Test 2 </div> <div id="tthree"> Test 3 </div> </sj:tabbedpanel>
<s:url id="remoteurl1" action="myremoteactionone"/>
<s:url id="remoteurl2" action="myremoteactiontwo"/>
<s:url id="remoteurl3" action="myremoteactionthree"/>
<sj:tabbedpanel id="mytabs2" selectedTab="1">
<sj:tab id="tab1" href="%{remoteurl1}" label="Tab One"/>
<sj:tab id="tab2" href="%{remoteurl2}" label="Tab Two"/>
<sj:tab id="tab3" href="%{remoteurl3}" label="Tab Three"/>
</sj:tabbedpanel>
| Modifier and Type | Field and Description |
|---|---|
protected String |
animate |
protected String |
cache |
protected String |
collapsible |
protected String |
disabledTabs |
static String |
JQUERYACTION |
protected String |
onAddTopics |
protected String |
onLoadTopics |
protected String |
onRemoveTopics |
protected String |
openOnMouseover |
protected String |
selectedTab |
protected String |
sortable |
protected String |
spinner |
static String |
TEMPLATE |
static String |
TEMPLATE_CLOSE |
protected String |
useSelectedTabCookie |
onAfterValidationTopics, onAlwaysTopics, onBeforeTopics, onBlurTopics, onChangeTopics, onCompleteTopics, onDisableTopics, onEnableTopics, onErrorTopics, onFocusTopics, onSuccessTopicsaccesskey, cssClass, cssErrorClass, cssErrorStyle, cssStyle, defaultTemplateDir, defaultUITheme, disabled, dynamicAttributes, id, javascriptTooltip, key, label, labelPosition, labelSeparator, name, onblur, onchange, onclick, ondblclick, onfocus, onkeydown, onkeypress, onkeyup, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, onselect, request, required, requiredposition, response, standardAttributesMap, tabindex, template, templateDir, templateEngineManager, templateSuffix, theme, title, tooltip, tooltipConfig, tooltipCssClass, tooltipDelay, tooltipIconPath, value| Constructor and Description |
|---|
TabbedPanel(com.opensymphony.xwork2.util.ValueStack stack,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
| Modifier and Type | Method and Description |
|---|---|
void |
evaluateExtraParams() |
String |
getComponentName() |
String |
getDefaultOpenTemplate() |
protected String |
getDefaultTemplate() |
String |
getTheme() |
void |
setAnimate(String animate) |
void |
setCache(String cache) |
void |
setCollapsible(String collapsible) |
void |
setDisabledTabs(String disabledTabs) |
void |
setId(String id) |
void |
setOnAddTopics(String onAddTopics) |
void |
setOnLoadTopics(String onLoadTopics) |
void |
setOnRemoveTopics(String onRemoveTopics) |
void |
setOpenOnMouseover(String openOnMouseover) |
void |
setSelectedTab(String selectedTab) |
void |
setSortable(String sortable) |
void |
setSpinner(String spinner) |
void |
setTheme(String theme) |
void |
setUseSelectedTabCookie(String useSelectedTabCookie) |
setOnAfterValidationTopics, setOnAlwaysTopics, setOnBeforeTopics, setOnBlurTopics, setOnChangeTopics, setOnCompleteTopics, setOnDisableTopics, setOnEnableTopics, setOnErrorTopics, setOnFocusTopics, setOnSuccessTopicsaddFormParameter, buildTemplateName, copyParams, enableAncestorFormCustomOnsubmit, end, ensureAttributeSafelyNotEscaped, escape, evaluateNameValue, evaluateParams, getId, getStandardAttributes, getTemplate, getTemplateDir, getTooltipConfig, getValueClassType, mergeTemplate, populateComponentHtmlId, setAccesskey, setCssClass, setCssErrorClass, setCssErrorStyle, setCssStyle, setDefaultTemplateDir, setDefaultUITheme, setDisabled, setDynamicAttributes, setJavascriptTooltip, setKey, setLabel, setLabelposition, setLabelSeparator, setName, setOnblur, setOnchange, setOnclick, setOndblclick, setOnfocus, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setOnselect, setRequired, setRequiredposition, setTabindex, setTemplate, setTemplateDir, setTemplateEngineManager, setTitle, setTooltip, setTooltipConfig, setTooltipCssClass, setTooltipDelay, setTooltipIconPath, setValueaddAllParameters, addParameter, altSyntax, altSyntax, completeExpressionIfAltSyntax, determineActionURL, determineNamespace, end, fieldError, findAncestor, findString, findString, findStringIfAltSyntax, findValue, findValue, findValue, getComponentStack, getParameters, getStack, popComponentStack, setActionMapper, setThrowExceptionsOnELFailure, setUrlHelper, stripExpressionIfAltSyntax, stripExpressionIfAltSyntax, toString, usesBodypublic static final String JQUERYACTION
public static final String TEMPLATE
public static final String TEMPLATE_CLOSE
protected String selectedTab
protected String useSelectedTabCookie
protected String openOnMouseover
protected String collapsible
protected String animate
protected String spinner
protected String cache
protected String disabledTabs
protected String sortable
protected String onAddTopics
protected String onRemoveTopics
protected String onLoadTopics
public TabbedPanel(com.opensymphony.xwork2.util.ValueStack stack,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
public void evaluateExtraParams()
evaluateExtraParams in class AbstractTopicsBeanpublic void setTheme(String theme)
setTheme in class org.apache.struts2.components.UIBeanpublic String getTheme()
getTheme in class org.apache.struts2.components.UIBeanpublic String getDefaultOpenTemplate()
getDefaultOpenTemplate in class org.apache.struts2.components.ClosingUIBeanprotected String getDefaultTemplate()
getDefaultTemplate in class org.apache.struts2.components.UIBeanpublic String getComponentName()
public void setId(String id)
setId in class org.apache.struts2.components.UIBeanpublic void setSelectedTab(String selectedTab)
public void setOpenOnMouseover(String openOnMouseover)
public void setCollapsible(String collapsible)
public void setAnimate(String animate)
public void setUseSelectedTabCookie(String useSelectedTabCookie)
public void setSpinner(String spinner)
public void setCache(String cache)
public void setDisabledTabs(String disabledTabs)
public void setOnAddTopics(String onAddTopics)
public void setOnRemoveTopics(String onRemoveTopics)
public void setOnLoadTopics(String onLoadTopics)
public void setSortable(String sortable)
Copyright © 2012. All Rights Reserved.