1
2
3
4
5 package gboat2.base.view.jsp;
6
7 import gboat2.base.view.GboatViewUtil;
8 import gboat2.base.view.components.GridOperation;
9
10 import javax.servlet.http.HttpServletRequest;
11 import javax.servlet.http.HttpServletResponse;
12
13 import org.apache.struts2.components.Component;
14 import org.apache.struts2.views.jsp.ui.AbstractUITag;
15
16 import com.opensymphony.xwork2.util.ValueStack;
17
18
19
20
21
22
23
24 public class GridOperationTag extends AbstractUITag {
25
26 private static final long serialVersionUID = 1L;
27
28 protected String icon;
29 protected String url;
30 protected String target;
31 protected String onClickTopic;
32 protected String options;
33
34
35
36
37 @Override
38 public Component getBean(ValueStack stack, HttpServletRequest req, HttpServletResponse res) {
39 return new GridOperation(stack, req, res);
40 }
41
42 @Override
43 protected void populateParams() {
44 super.populateParams();
45 GboatViewUtil.populateParams(this, component);
46 }
47
48 public void setIcon(String icon) {
49 this.icon = icon;
50 }
51
52 public void setUrl(String url) {
53 this.url = url;
54 }
55
56 public void setTarget(String target) {
57 this.target = target;
58 }
59
60 public void setOnClickTopic(String onClickTopic) {
61 this.onClickTopic = onClickTopic;
62 }
63
64 public void setOptions(String options) {
65 this.options = options;
66 }
67
68 }