1 package com.opensymphony.webwork.views.jsp.ui; 2 3 import com.opensymphony.webwork.views.jsp.ui.AbstractUITag; 4 import com.opensymphony.webwork.components.UIBean; 5 import com.opensymphony.webwork.components.Div; 6 import com.opensymphony.xwork.util.OgnlValueStack; 7 8 import javax.servlet.http.HttpServletRequest ; 9 import javax.servlet.http.HttpServletResponse ; 10 11 21 public class DivTag extends AbstractUITag { 22 23 protected String href; 24 protected String updateFreq; 25 protected String delay; 26 protected String loadingText; 27 protected String errorText; 28 protected String showErrorTransportText; 29 protected String listenTopics; 30 protected String afterLoading; 31 32 public UIBean getBean(OgnlValueStack stack, HttpServletRequest req, HttpServletResponse res) { 33 return new Div(stack, req, res); 34 } 35 36 protected void populateParams() { 37 super.populateParams(); 38 39 Div div = (Div) bean; 40 div.setHref(href); 41 div.setUpdateFreq(updateFreq); 42 div.setDelay(delay); 43 div.setLoadingText(loadingText); 44 div.setErrorText(errorText); 45 div.setShowErrorTransportText(showErrorTransportText); 46 div.setListenTopics(listenTopics); 47 div.setAfterLoading(afterLoading); 48 } 49 50 public void setHref(String href) { 51 this.href = href; 52 } 53 54 public void setUpdateFreq(String updateFreq) { 55 this.updateFreq = updateFreq; 56 } 57 58 public void setDelay(String delay) { 59 this.delay = delay; 60 } 61 62 public void setLoadingText(String loadingText) { 63 this.loadingText = loadingText; 64 } 65 66 public void setErrorText(String errorText) { 67 this.errorText = errorText; 68 } 69 70 public void setShowErrorTransportText(String showErrorTransportText) { 71 this.showErrorTransportText = showErrorTransportText; 72 } 73 74 public void setListenTopics(String listenTopics) { 75 this.listenTopics = listenTopics; 76 } 77 78 public void setAfterLoading(String afterLoading) { 79 this.afterLoading = afterLoading; 80 } 81 } 82 | Popular Tags |