org.apache.struts2.components
Class Panel

java.lang.Object
  extended by org.apache.struts2.components.Component
      extended by org.apache.struts2.components.UIBean
          extended by org.apache.struts2.components.ClosingUIBean
              extended by org.apache.struts2.components.RemoteCallUIBean
                  extended by org.apache.struts2.components.Div
                      extended by org.apache.struts2.components.Panel

public class Panel
extends Div

Render a panel for tabbedPanel.

Examples See the example in TabbedPanel.

See Also:
TabbedPanel

Field Summary
static java.lang.String COMPONENT_NAME
           
protected  java.lang.String remote
           
protected  java.lang.String subscribeTopicName
           
protected  java.lang.String tabName
           
static java.lang.String TEMPLATE
           
static java.lang.String TEMPLATE_CLOSE
           
 
Fields inherited from class org.apache.struts2.components.Div
delay, listenTopics, loadingText, updateFreq
 
Fields inherited from class org.apache.struts2.components.RemoteCallUIBean
afterLoading, errorText, href, showErrorTransportText
 
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
 
Fields inherited from class org.apache.struts2.components.Component
COMPONENT_STACK, id, parameters, stack
 
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.Div
setDelay, setListenTopics, setLoadingText, setUpdateFreq
 
Methods inherited from class org.apache.struts2.components.RemoteCallUIBean
setAfterLoading, setErrorText, setHref, setShowErrorTransportText, setTheme
 
Methods inherited from class org.apache.struts2.components.ClosingUIBean
setOpenTemplate, start
 
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
 

Field Detail

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
Constructor Detail

Panel

public Panel(com.opensymphony.xwork2.util.OgnlValueStack stack,
             javax.servlet.http.HttpServletRequest request,
             javax.servlet.http.HttpServletResponse response)
Method Detail

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.