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 |
cache |
protected String |
collapsible |
protected String |
disabledTabs |
protected String |
heightStyle |
protected String |
hide |
static String |
JQUERYACTION |
protected String |
onActivateTopics |
protected String |
onBeforeActivateTopics |
protected String |
onLoadTopics |
protected String |
openOnMouseover |
protected String |
selectedTab |
protected String |
show |
protected String |
sortable |
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, errorPosition, id, javascriptTooltip, key, label, labelPosition, labelSeparator, name, onblur, onchange, onclick, ondblclick, onfocus, onkeydown, onkeypress, onkeyup, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, onselect, request, requiredLabel, 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 |
setCache(String cache) |
void |
setCollapsible(String collapsible) |
void |
setDisabledTabs(String disabledTabs) |
void |
setHeightStyle(String heightStyle) |
void |
setHide(String hide) |
void |
setId(String id) |
void |
setOnActivateTopics(String onActivateTopics) |
void |
setOnBeforeActivateTopics(String onBeforeActivateTopics) |
void |
setOnLoadTopics(String onLoadTopics) |
void |
setOpenOnMouseover(String openOnMouseover) |
void |
setSelectedTab(String selectedTab) |
void |
setShow(String show) |
void |
setSortable(String sortable) |
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, setErrorPosition, setJavascriptTooltip, setKey, setLabel, setLabelposition, setLabelSeparator, setName, setOnblur, setOnchange, setOnclick, setOndblclick, setOnfocus, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setOnselect, setRequiredLabel, setRequiredPosition, setTabindex, setTemplate, setTemplateDir, setTemplateEngineManager, setTitle, setTooltip, setTooltipConfig, setTooltipCssClass, setTooltipDelay, setTooltipIconPath, setValueaddAllParameters, addParameter, altSyntax, completeExpressionIfAltSyntax, determineActionURL, determineNamespace, end, fieldError, findAncestor, findString, findString, findStringIfAltSyntax, findValue, findValue, findValue, getComponentStack, getParameters, getStack, popComponentStack, setActionMapper, setThrowExceptionsOnELFailure, setUrlHelper, 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 show
protected String hide
protected String cache
protected String disabledTabs
protected String sortable
protected String onLoadTopics
protected String onActivateTopics
protected String onBeforeActivateTopics
protected String heightStyle
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 setShow(String show)
public void setHide(String hide)
public void setUseSelectedTabCookie(String useSelectedTabCookie)
public void setCache(String cache)
public void setDisabledTabs(String disabledTabs)
public void setOnLoadTopics(String onLoadTopics)
public void setOnActivateTopics(String onActivateTopics)
public void setOnBeforeActivateTopics(String onBeforeActivateTopics)
public void setSortable(String sortable)
public void setHeightStyle(String heightStyle)
Copyright © 2013. All Rights Reserved.