1 package gboat2.base.view.jsp;
2
3 import gboat2.base.view.GboatViewUtil;
4 import gboat2.base.view.components.GridPager;
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.AbstractUITag;
11
12 import com.opensymphony.xwork2.util.ValueStack;
13
14
15
16
17
18
19
20
21 public class GridPagerTag extends AbstractUITag {
22
23 private static final long serialVersionUID = 7618322146696075561L;
24
25 protected String pagerpos;
26 protected String pgbuttons;
27 protected String pginput;
28 protected String pgtext;
29 protected String recordpos;
30 protected String recordtext;
31 protected String rowList;
32 protected String rowNum;
33 protected String viewrecords;
34
35 protected String onPagingTopics;
36
37 @Override
38 public Component getBean(ValueStack stack, HttpServletRequest req, HttpServletResponse res) {
39 return new GridPager(stack, req, res);
40 }
41
42 @Override
43 protected void populateParams() {
44 super.populateParams();
45 GboatViewUtil.populateParams(this, component);
46 }
47
48 public void setPagerpos(String pagerpos) {
49 this.pagerpos = pagerpos;
50 }
51
52 public void setPgbuttons(String pgbuttons) {
53 this.pgbuttons = pgbuttons;
54 }
55
56 public void setPginput(String pginput) {
57 this.pginput = pginput;
58 }
59
60 public void setPgtext(String pgtext) {
61 this.pgtext = pgtext;
62 }
63
64 public void setRecordpos(String recordpos) {
65 this.recordpos = recordpos;
66 }
67
68 public void setRecordtext(String recordtext) {
69 this.recordtext = recordtext;
70 }
71
72 public void setRowList(String rowList) {
73 this.rowList = rowList;
74 }
75
76 public void setRowNum(String rowNum) {
77 this.rowNum = rowNum;
78 }
79
80 public void setViewrecords(String viewrecords) {
81 this.viewrecords = viewrecords;
82 }
83
84 public void setOnPagingTopics(String onPagingTopics) {
85 this.onPagingTopics = onPagingTopics;
86 }
87
88 }