1 package gboat2.base.view.jsp;
2
3 import gboat2.base.view.GboatViewUtil;
4 import gboat2.base.view.components.TabbedPanel;
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.AbstractClosingTag;
11
12 import com.opensymphony.xwork2.util.ValueStack;
13
14
15
16
17
18
19
20
21 public class TabbedPanelTag extends AbstractClosingTag {
22
23 private static final long serialVersionUID = -4719930205515386252L;
24
25 protected String active;
26 protected String collapsible;
27 protected String disabled;
28 protected String event;
29 protected String heightStyle;
30 protected String hide;
31 protected String show;
32
33 protected String tabPosition;
34 protected String cache;
35 protected String useSelectedTabCookie;
36
37 protected String onActivateTopics;
38 protected String onBeforeActivateTopics;
39 protected String onLoadTopics;
40
41 @Override
42 public Component getBean(ValueStack stack, HttpServletRequest req, HttpServletResponse res) {
43 return new TabbedPanel(stack, req, res);
44 }
45
46 @Override
47 protected void populateParams() {
48 super.populateParams();
49 GboatViewUtil.populateParams(this, component);
50 }
51
52 public void setActive(String active) {
53 this.active = active;
54 }
55
56 public void setCollapsible(String collapsible) {
57 this.collapsible = collapsible;
58 }
59
60 public void setDisabled(String disabled) {
61 this.disabled = disabled;
62 }
63
64 public void setEvent(String event) {
65 this.event = event;
66 }
67
68 public void setHeightStyle(String heightStyle) {
69 this.heightStyle = heightStyle;
70 }
71
72 public void setHide(String hide) {
73 this.hide = hide;
74 }
75
76 public void setShow(String show) {
77 this.show = show;
78 }
79
80 public void setTabPosition(String tabPosition) {
81 this.tabPosition = tabPosition;
82 }
83
84 public void setCache(String cache) {
85 this.cache = cache;
86 }
87
88 public void setUseSelectedTabCookie(String useSelectedTabCookie) {
89 this.useSelectedTabCookie = useSelectedTabCookie;
90 }
91
92 public void setOnActivateTopics(String onActivateTopics) {
93 this.onActivateTopics = onActivateTopics;
94 }
95
96 public void setOnBeforeActivateTopics(String onBeforeActivateTopics) {
97 this.onBeforeActivateTopics = onBeforeActivateTopics;
98 }
99
100 public void setOnLoadTopics(String onLoadTopics) {
101 this.onLoadTopics = onLoadTopics;
102 }
103 }