1
2
3
4
5 package gboat2.base.view.jsp;
6
7 import gboat2.base.view.GboatViewUtil;
8 import gboat2.base.view.components.TextField;
9
10 import javax.servlet.http.HttpServletRequest;
11 import javax.servlet.http.HttpServletResponse;
12
13 import org.apache.struts2.components.Component;
14
15 import com.opensymphony.xwork2.util.ValueStack;
16
17
18
19
20
21
22
23
24 public class TextFieldTag extends org.apache.struts2.views.jsp.ui.TextFieldTag {
25
26 private static final long serialVersionUID = 1L;
27
28 protected String colspan;
29 protected String groupColumns;
30 protected String labelCssClass;
31 protected String labelCssStyle;
32 protected String helpText;
33 protected String inputPrepend;
34 protected String inputAppend;
35
36
37 @Override
38 public Component getBean(ValueStack stack, HttpServletRequest req, HttpServletResponse res) {
39 return new TextField(stack, req, res);
40 }
41
42 @Override
43 protected void populateParams() {
44 super.populateParams();
45 GboatViewUtil.populateParams(this, component);
46 }
47
48 public void setColspan(String colspan) {
49 this.colspan = colspan;
50 }
51
52 public void setGroupColumns(String groupColumns) {
53 this.groupColumns = groupColumns;
54 }
55
56 public void setHelpText(String helpText) {
57 this.helpText = helpText;
58 }
59
60 public void setInputPrepend(String inputPrepend) {
61 this.inputPrepend = inputPrepend;
62 }
63
64 public void setInputAppend(String inputAppend) {
65 this.inputAppend = inputAppend;
66 }
67
68 public void setLabelCssClass(String labelCssClass) {
69 this.labelCssClass = labelCssClass;
70 }
71
72 public void setLabelCssStyle(String labelCssStyle) {
73 this.labelCssStyle = labelCssStyle;
74 }
75 }