01: /**
02: * @author <a href="mailto:novotny@gridsphere.org">Jason Novotny</a>
03: * @version $Id: TextFieldBean.java 6385 2007-10-25 14:02:26Z wehrens $
04: */package org.gridsphere.provider.portletui.beans;
05:
06: /**
07: * The <code>TextFieldBean</code> represents a text field element
08: */
09: public class TextFieldBean extends InputBean implements TagBean {
10:
11: /**
12: * Constructs a default text field bean
13: */
14: public TextFieldBean() {
15: super (TagBean.TEXTFIELD_NAME);
16: this .inputtype = "text";
17: }
18:
19: /**
20: * Constructs a text field bean using the supplied bean name
21: *
22: * @param beanId the bean identifier
23: */
24: public TextFieldBean(String beanId) {
25: super (TagBean.TEXTFIELD_NAME);
26: this .beanId = beanId;
27: this .inputtype = "text";
28: }
29:
30: /**
31: * Constructs a text field bean using the supplied bean name and identifier
32: *
33: * @param vbName the visual bean name, a 2 character identifier
34: * @param beanId the bean identifier
35: */
36: public TextFieldBean(String vbName, String beanId) {
37: super (vbName);
38: this .inputtype = "text";
39: this .beanId = beanId;
40: }
41:
42: public String toStartString() {
43: return super.toStartString();
44: }
45:
46: }
|