1
2
3
4
5 package gboat2.base.view.jsp;
6
7 import gboat2.base.view.GboatViewUtil;
8 import gboat2.base.view.components.GridOperations;
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.AbstractClosingTag;
15
16 import com.opensymphony.xwork2.util.ValueStack;
17
18
19
20
21
22
23
24 public class GridOperationsTag extends AbstractClosingTag {
25
26 private static final long serialVersionUID = 1L;
27
28 protected String align;
29 protected String fixed;
30 protected String frozen;
31 protected String resizable;
32 protected String width;
33
34
35
36
37 @Override
38 public Component getBean(ValueStack stack, HttpServletRequest req, HttpServletResponse res) {
39 return new GridOperations(stack, req, res);
40 }
41
42 @Override
43 protected void populateParams() {
44 super.populateParams();
45 GboatViewUtil.populateParams(this, component);
46 }
47
48 public void setAlign(String align) {
49 this.align = align;
50 }
51
52 public void setFixed(String fixed) {
53 this.fixed = fixed;
54 }
55
56 public void setFrozen(String frozen) {
57 this.frozen = frozen;
58 }
59
60 public void setResizable(String resizable) {
61 this.resizable = resizable;
62 }
63
64 public void setWidth(String width) {
65 this.width = width;
66 }
67
68 }