1 package gboat2.base.view.jsp;
2
3 import gboat2.base.view.GboatViewUtil;
4 import gboat2.base.view.components.Dialog;
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 DialogTag extends AbstractClosingTag {
22 private static final long serialVersionUID = 1L;
23
24 protected String appendTo;
25 protected String autoOpen;
26 protected String buttons;
27 protected String closeOnEscape;
28 protected String closeText;
29 protected String dialogClass;
30 protected String draggable;
31 protected String height;
32 protected String hide;
33 protected String maxHeight;
34 protected String maxWidth;
35 protected String minHeight;
36 protected String minWidth;
37 protected String modal;
38 protected String position;
39 protected String resizable;
40 protected String show;
41 protected String width;
42
43 protected String showCloseButton;
44
45 protected String onBeforeCloseTopics;
46 protected String onCloseTopics;
47 protected String onFocusTopics;
48 protected String onOpenTopics;
49 protected String openTopics;
50 protected String closeTopics;
51 protected String destroyTopics;
52
53 @Override
54 public Component getBean(ValueStack stack, HttpServletRequest req, HttpServletResponse res) {
55 return new Dialog(stack, req, res);
56 }
57
58 @Override
59 protected void populateParams() {
60 super.populateParams();
61 GboatViewUtil.populateParams(this, component);
62 }
63
64 public void setAppendTo(String appendTo) {
65 this.appendTo = appendTo;
66 }
67
68 public void setAutoOpen(String autoOpen) {
69 this.autoOpen = autoOpen;
70 }
71
72 public void setButtons(String buttons) {
73 this.buttons = buttons;
74 }
75
76 public void setCloseOnEscape(String closeOnEscape) {
77 this.closeOnEscape = closeOnEscape;
78 }
79
80 public void setCloseText(String closeText) {
81 this.closeText = closeText;
82 }
83
84 public void setDialogClass(String dialogClass) {
85 this.dialogClass = dialogClass;
86 }
87
88 public void setDraggable(String draggable) {
89 this.draggable = draggable;
90 }
91
92 public void setHeight(String height) {
93 this.height = height;
94 }
95
96 public void setHide(String hide) {
97 this.hide = hide;
98 }
99
100 public void setMaxHeight(String maxHeight) {
101 this.maxHeight = maxHeight;
102 }
103
104 public void setMaxWidth(String maxWidth) {
105 this.maxWidth = maxWidth;
106 }
107
108 public void setMinHeight(String minHeight) {
109 this.minHeight = minHeight;
110 }
111
112 public void setMinWidth(String minWidth) {
113 this.minWidth = minWidth;
114 }
115
116 public void setModal(String modal) {
117 this.modal = modal;
118 }
119
120 public void setPosition(String position) {
121 this.position = position;
122 }
123
124 public void setResizable(String resizable) {
125 this.resizable = resizable;
126 }
127
128 public void setShow(String show) {
129 this.show = show;
130 }
131
132 public void setWidth(String width) {
133 this.width = width;
134 }
135
136 public void setShowCloseButton(String showCloseButton) {
137 this.showCloseButton = showCloseButton;
138 }
139
140 public void setOnBeforeCloseTopics(String onBeforeCloseTopics) {
141 this.onBeforeCloseTopics = onBeforeCloseTopics;
142 }
143
144 public void setOnCloseTopics(String onCloseTopics) {
145 this.onCloseTopics = onCloseTopics;
146 }
147
148 public void setOnFocusTopics(String onFocusTopics) {
149 this.onFocusTopics = onFocusTopics;
150 }
151
152 public void setOnOpenTopics(String onOpenTopics) {
153 this.onOpenTopics = onOpenTopics;
154 }
155
156 public void setOpenTopics(String openTopics) {
157 this.openTopics = openTopics;
158 }
159
160 public void setCloseTopics(String closeTopics) {
161 this.closeTopics = closeTopics;
162 }
163
164 public void setDestroyTopics(String destroyTopics) {
165 this.destroyTopics = destroyTopics;
166 }
167 }