Source code: com/openwave/oui/waomelements/Input.java
1 package com.openwave.oui.waomelements;
2
3 import com.openwave.oui.framework.*;
4
5 /**
6 * The input object encapsulates the input element.<br/>
7 * Creation date: (4/4/2001 3:37:20 PM)
8 * @author: Lars Gunder Knudsen
9 */
10 public class Input extends WaomLeaf {
11 private String type = null;
12 private String name = null;
13 private String value = null;
14 private String title = null;
15 private String format = null;
16 private String size = null;
17 private String tabindex = null;
18 private String xmlLang = null;
19 private String maxlength = null;
20 private boolean emptyok = false;
21
22 private final static long serialVersionUID = 6177324354208689642L;
23 public String getType() {
24 return this.type;
25 }
26 public void setType(String type) {
27 this.type = type;
28 }
29 public String getName() {
30 return this.name;
31 }
32 public void setName(String name) {
33 this.name = name;
34 }
35 public void setValue(String Value) {
36 this.value = value;
37 }
38 public String getTitle() {
39 return this.title;
40 }
41 public void setTitle(String title) {
42 this.title = title;
43 }
44
45
46 /**
47 * Insert the method's description here.
48 * Creation date: (4/4/2001 3:39:40 PM)
49 * @param param java.lang.String
50 */
51 public Input(String type, String name, String value) {
52 super();
53 this.type = type;
54 this.name = name;
55 this.value = value;
56 //waomElementName = "Input";
57 setWaomElementName("Input");
58 }
59
60
61 public boolean getEmptyok() {
62 return this.emptyok;
63 }
64
65
66 public String getFormat() {
67 return this.format;
68 }
69
70
71 public String getMaxlength() {
72 return this.maxlength;
73 }
74
75
76 public String getSize() {
77 return this.size;
78 }
79
80
81 public String getTabindex() {
82 return this.tabindex;
83 }
84
85
86 public String getValue() {
87 return this.value;
88 }
89
90
91 public String getXmlLang() {
92 return this.xmlLang;
93 }
94
95
96 public boolean isWidget(){
97 return true;
98 }
99
100
101 /**
102 * Direct counterpart of WML attribute emptyok.
103 * @param emptyok emptyok attribute
104 */
105 public void setEmptyok(boolean emptyok) {
106 this.emptyok = emptyok;
107 }
108
109
110 /**
111 * Direct counterpart of WML attribute format.
112 * @param format format attribute
113 */
114 public void setFormat(String format) {
115 this.format = format;
116 }
117
118
119 public void setMaxlength(String maxlength) {
120 this.maxlength = maxlength;
121 }
122
123
124 public void setSize(String size) {
125 this.size = size;
126 }
127
128
129 public void setTabindex(String tabindex) {
130 this.tabindex = tabindex;
131 }
132
133
134 public void setXmlLang(String xmlLang) {
135 this.xmlLang = xmlLang;
136 }
137
138
139 public void visit(WaomVisitor wv){
140 wv.visit(this);
141 }
142 }