org.apache.struts2.components
Class Panel
java.lang.Object
org.apache.struts2.components.Component
org.apache.struts2.components.UIBean
org.apache.struts2.components.ClosingUIBean
org.apache.struts2.components.RemoteCallUIBean
org.apache.struts2.components.Div
org.apache.struts2.components.Panel
public class Panel
- extends Div
Render a panel for tabbedPanel.
Examples
See the example in TabbedPanel
.
- See Also:
TabbedPanel
Fields inherited from class org.apache.struts2.components.UIBean |
accesskey, cssClass, cssStyle, disabled, label, labelPosition, name, onblur, onchange, onclick, ondblclick, onfocus, onkeydown, onkeypress, onkeyup, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, onselect, request, required, requiredposition, response, tabindex, template, templateDir, templateSuffix, theme, title, tooltip, tooltipConfig, value |
Constructor Summary |
Panel(com.opensymphony.xwork2.util.OgnlValueStack stack,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
Method Summary |
boolean |
end(java.io.Writer writer,
java.lang.String body)
Callback for the end tag of this component. |
void |
evaluateExtraParams()
|
java.lang.String |
getComponentName()
|
java.lang.String |
getDefaultOpenTemplate()
|
protected java.lang.String |
getDefaultTemplate()
A contract that requires each concrete UI Tag to specify which template should be used as a default. |
java.lang.String |
getTabName()
|
void |
setRemote(java.lang.String remote)
determines whether this is a remote panel (ajax) or a local panel (content loaded into visible/hidden containers) |
void |
setSubscribeTopicName(java.lang.String subscribeTopicName)
Set subscribeTopicName attribute |
void |
setTabName(java.lang.String tabName)
The text of the tab to display in the header tab list |
Methods inherited from class org.apache.struts2.components.UIBean |
addFormParameter, buildTemplateName, enableAncestorFormCustomOnsubmit, escape, evaluateNameValue, evaluateParams, getTemplate, getTemplateDir, getTheme, getTooltipConfig, getValueClassType, mergeTemplate, populateComponentHtmlId, setAccesskey, setCssClass, setCssStyle, setDisabled, setLabel, setLabelposition, setName, setOnblur, setOnchange, setOnclick, setOndblclick, setOnfocus, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setOnselect, setRequired, setRequiredposition, setTabindex, setTemplate, setTemplateDir, setTitle, setTooltip, setTooltipConfig, setValue |
Methods inherited from class org.apache.struts2.components.Component |
addAllParameters, addParameter, altSyntax, copyParams, determineActionURL, determineNamespace, end, fieldError, findAncestor, findString, findString, findValue, findValue, findValue, getComponentStack, getId, getParameters, getStack, popComponentStack, setId, toString, usesBody |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TEMPLATE
public static final java.lang.String TEMPLATE
- See Also:
- Constant Field Values
TEMPLATE_CLOSE
public static final java.lang.String TEMPLATE_CLOSE
- See Also:
- Constant Field Values
COMPONENT_NAME
public static final java.lang.String COMPONENT_NAME
tabName
protected java.lang.String tabName
subscribeTopicName
protected java.lang.String subscribeTopicName
remote
protected java.lang.String remote
Panel
public Panel(com.opensymphony.xwork2.util.OgnlValueStack stack,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
getDefaultOpenTemplate
public java.lang.String getDefaultOpenTemplate()
- Overrides:
getDefaultOpenTemplate
in class Div
getDefaultTemplate
protected java.lang.String getDefaultTemplate()
- Description copied from class:
UIBean
- A contract that requires each concrete UI Tag to specify which template should be used as a default. For
example, the CheckboxTab might return "checkbox.vm" while the RadioTag might return "radio.vm". This value
not begin with a '/' unless you intend to make the path absolute rather than relative to the
current theme.
- Overrides:
getDefaultTemplate
in class Div
- Returns:
- The name of the template to be used as the default.
end
public boolean end(java.io.Writer writer,
java.lang.String body)
- Description copied from class:
Component
- Callback for the end tag of this component.
Should the body be evaluated again?
NOTE: will pop component stack.
- Overrides:
end
in class UIBean
- Parameters:
writer
- the output writer.body
- the rendered body.
- Returns:
- true if the body should be evaluated again
evaluateExtraParams
public void evaluateExtraParams()
- Overrides:
evaluateExtraParams
in class Div
getTabName
public java.lang.String getTabName()
getComponentName
public java.lang.String getComponentName()
setTabName
public void setTabName(java.lang.String tabName)
- The text of the tab to display in the header tab list
setSubscribeTopicName
public void setSubscribeTopicName(java.lang.String subscribeTopicName)
- Set subscribeTopicName attribute
setRemote
public void setRemote(java.lang.String remote)
- determines whether this is a remote panel (ajax) or a local panel (content loaded into visible/hidden containers)
Copyright © 2000-2006 Apache Software Foundation. All Rights Reserved.