1 package com.opensymphony.webwork.views.jsp.ui; 2 3 import com.opensymphony.webwork.components.UIBean; 4 import com.opensymphony.webwork.components.Panel; 5 import com.opensymphony.xwork.util.OgnlValueStack; 6 7 import javax.servlet.http.HttpServletRequest ; 8 import javax.servlet.http.HttpServletResponse ; 9 10 14 public class PanelTag extends DivTag { 15 protected String tabName; 16 protected String subscribeTopicName; 17 protected String remote; 18 19 public UIBean getBean(OgnlValueStack stack, 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) bean); 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 } 44 | Popular Tags |