1 package gboat2.base.view.jsp;
2
3 import gboat2.base.view.GboatViewUtil;
4 import gboat2.base.view.components.Progressbar;
5
6 import javax.servlet.http.HttpServletRequest;
7 import javax.servlet.http.HttpServletResponse;
8
9 import org.apache.struts2.components.Component;
10 import org.apache.struts2.views.jsp.ui.DivTag;
11
12 import com.opensymphony.xwork2.util.ValueStack;
13
14
15
16
17
18
19
20
21 public class ProgressbarTag extends DivTag {
22
23 private static final long serialVersionUID = 1L;
24
25 protected String max;
26 protected String onChangeTopics;
27 protected String onCompleteTopics;
28
29 public Component getBean(ValueStack stack, HttpServletRequest req, HttpServletResponse res) {
30 return new Progressbar(stack, req, res);
31 }
32
33 protected void populateParams() {
34 super.populateParams();
35 GboatViewUtil.populateParams(this, component);
36 }
37
38 public void setMax(String max) {
39 this.max = max;
40 }
41
42 public void setOnChangeTopics(String onChangeTopics) {
43 this.onChangeTopics = onChangeTopics;
44 }
45
46 public void setOnCompleteTopics(String onCompleteTopics) {
47 this.onCompleteTopics = onCompleteTopics;
48 }
49 }