01: package com.opensymphony.webwork.views.jsp.ui;
02:
03: import com.opensymphony.webwork.components.Component;
04: import com.opensymphony.webwork.components.Panel;
05: import com.opensymphony.xwork.util.OgnlValueStack;
06:
07: import javax.servlet.http.HttpServletRequest;
08: import javax.servlet.http.HttpServletResponse;
09:
10: /**
11: * @see Panel
12: */
13: public class PanelTag extends DivTag {
14: protected String tabName;
15: protected String subscribeTopicName;
16: protected String remote;
17:
18: public Component getBean(OgnlValueStack stack,
19: HttpServletRequest req, HttpServletResponse res) {
20: return new Panel(stack, req, res);
21: }
22:
23: protected void populateParams() {
24: super .populateParams();
25:
26: Panel panel = ((Panel) component);
27: panel.setTabName(tabName);
28: panel.setSubscribeTopicName(subscribeTopicName);
29: panel.setRemote(remote);
30: }
31:
32: public void setTabName(String tabName) {
33: this .tabName = tabName;
34: }
35:
36: public void setSubscribeTopicName(String subscribeTopicName) {
37: this .subscribeTopicName = subscribeTopicName;
38: }
39:
40: public void setRemote(String remote) {
41: this.remote = remote;
42: }
43: }
|