01: package org.gridsphere.provider.portletui.beans;
02:
03: /**
04: * The <code>TextBean</code> represents text to be displayed
05: */
06: public class ValidatorBean extends BaseComponentBean implements TagBean {
07:
08: protected String type = "";
09:
10: /**
11: * Constructs a default text bean
12: */
13: public ValidatorBean() {
14:
15: }
16:
17: /**
18: * Constructs a text bean using a supplied bean identifier
19: *
20: * @param beanId the bean identifier
21: */
22: public ValidatorBean(String beanId) {
23: this .beanId = beanId;
24: }
25:
26: public String getType() {
27: return type;
28: }
29:
30: public void setType(String type) {
31: this .type = type;
32: }
33:
34: public String toStartString() {
35: return "<input type=\"hidden\" name=\"" + "val#" + name + "#"
36: + type + "\" value=\"" + value + "\"/>";
37: }
38:
39: public String toEndString() {
40: return "";
41: }
42:
43: }
|