com.opensymphony.webwork.components
Class Panel

java.lang.Object
  extended by com.opensymphony.webwork.components.Component
      extended by com.opensymphony.webwork.components.UIBean
          extended by com.opensymphony.webwork.components.ClosingUIBean
              extended by com.opensymphony.webwork.components.RemoteCallUIBean
                  extended by com.opensymphony.webwork.components.Div
                      extended by com.opensymphony.webwork.components.Panel

public class Panel
extends Div

Render a panel for tabbedPanel.

Examples See the example in TabbedPanel.

Since:
2.2
Version:
$Revision: 2468 $
Author:
Ian Roughley, Patrick Lightbody, Rene Gielen
See Also:
TabbedPanel

Field Summary
static String COMPONENT_NAME
           
protected  String remote
           
protected  String subscribeTopicName
           
protected  String tabName
           
static String TEMPLATE
           
static String TEMPLATE_CLOSE
           
 
Fields inherited from class com.opensymphony.webwork.components.Div
delay, listenTopics, loadingText, updateFreq
 
Fields inherited from class com.opensymphony.webwork.components.RemoteCallUIBean
afterLoading, errorText, href, showErrorTransportText
 
Fields inherited from class com.opensymphony.webwork.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 com.opensymphony.webwork.components.Component
COMPONENT_STACK, id, parameters, stack
 
Constructor Summary
Panel(OgnlValueStack stack, HttpServletRequest request, HttpServletResponse response)
           
 
Method Summary
 boolean end(Writer writer, String body)
          Callback for the end tag of this component.
 void evaluateExtraParams()
           
 String getComponentName()
           
 String getDefaultOpenTemplate()
           
protected  String getDefaultTemplate()
          A contract that requires each concrete UI Tag to specify which template should be used as a default.
 String getTabName()
           
 void setRemote(String remote)
          determines whether this is a remote panel (ajax) or a local panel (content loaded into visible/hidden containers)
 void setSubscribeTopicName(String subscribeTopicName)
          Set subscribeTopicName attribute
 void setTabName(String tabName)
          The text of the tab to display in the header tab list
 
Methods inherited from class com.opensymphony.webwork.components.Div
setDelay, setListenTopics, setLoadingText, setUpdateFreq
 
Methods inherited from class com.opensymphony.webwork.components.RemoteCallUIBean
setAfterLoading, setErrorText, setHref, setShowErrorTransportText, setTheme
 
Methods inherited from class com.opensymphony.webwork.components.ClosingUIBean
setOpenTemplate, start
 
Methods inherited from class com.opensymphony.webwork.components.UIBean
addFormParameter, buildTemplateName, enableAncestorFormCustomOnsubmit, escape, evaluateNameValue, evaluateParams, getTemplate, getTemplateDir, getTheme, getTooltipConfig, getValueClassType, mergeTemplate, populateComponentHtmlId, setAccesskey, setCssClass, setCssStyle, setDisabled, setLabel, setLabelposition, 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 com.opensymphony.webwork.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 String TEMPLATE
See Also:
Constant Field Values

TEMPLATE_CLOSE

public static final String TEMPLATE_CLOSE
See Also:
Constant Field Values

COMPONENT_NAME

public static final String COMPONENT_NAME

tabName

protected String tabName

subscribeTopicName

protected String subscribeTopicName

remote

protected String remote
Constructor Detail

Panel

public Panel(OgnlValueStack stack,
             HttpServletRequest request,
             HttpServletResponse response)
Method Detail

getDefaultOpenTemplate

public String getDefaultOpenTemplate()
Overrides:
getDefaultOpenTemplate in class Div

getDefaultTemplate

protected 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(Writer writer,
                   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 String getTabName()

getComponentName

public String getComponentName()

setTabName

public void setTabName(String tabName)
The text of the tab to display in the header tab list


setSubscribeTopicName

public void setSubscribeTopicName(String subscribeTopicName)
Set subscribeTopicName attribute


setRemote

public void setRemote(String remote)
determines whether this is a remote panel (ajax) or a local panel (content loaded into visible/hidden containers)


WebWork Project Page