01: // Copyright (c) 2003-2007, Jodd Team (jodd.sf.net). All Rights Reserved.
02:
03: package madvoc;
04:
05: import jodd.mutable.MutableInteger;
06: import jodd.util.StringUtil;
07:
08: import java.util.Arrays;
09: import java.util.List;
10: import java.util.Map;
11:
12: public class FooFormBean {
13:
14: public String check;
15: public boolean check1;
16: public Boolean[] check2;
17: public MutableInteger[] check3 = new MutableInteger[3];
18: public String hidden;
19: public String text;
20: public int text1;
21: public Long text2;
22: public String textarea;
23: public String password;
24: public String radio;
25: public String select;
26: public String[] sarr;
27: public List<String> slist;
28: public Map<String, String> smap;
29: public int[] iarr;
30:
31: // ---------------------------------------------------------------- toString
32:
33: @Override
34: public String toString() {
35: StringBuilder result = new StringBuilder();
36: result.append("\ncheck = ").append(check);
37: result.append("\ncheck1 = ").append(check1);
38: result.append("\ncheck2 = ").append(Arrays.toString(check2));
39: result.append("\ncheck3 = ").append(Arrays.toString(check3));
40: result.append("\nhidden = ").append(hidden);
41: result.append("\nsarr = ").append(Arrays.toString(sarr));
42: result.append("\npassword = ").append(password);
43: result.append("\nradio = ").append(radio);
44: result.append("\nselect = ").append(select);
45: result.append("\ntext = ").append(text);
46: result.append("\ntext1 = ").append(text1);
47: result.append("\ntext2 = ").append(text2);
48: result.append("\ntextarea = ").append(textarea);
49: result.append("\nslist = ").append(slist);
50: result.append("\nsmap = ").append(smap);
51: result.append("\niarr = ").append(Arrays.toString(iarr));
52: return result.toString();
53: }
54:
55: // ---------------------------------------------------------------- accessors (not required)
56:
57: public void setTextarea(String value) {
58: textarea = StringUtil.trimNonEmpty(value);
59: }
60:
61: }
|