KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > wml > WMLInputElement


1 /*
2  * Copyright 1999,2000,2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 package org.apache.wml;
17
18 /**
19  * <p>The interface is modeled after DOM1 Spec for HTML from W3C.
20  * The DTD used in this DOM model is from
21  * <a HREF="http://www.wapforum.org/DTD/wml_1.1.xml">
22  * http://www.wapforum.org/DTD/wml_1.1.xml</a></p>
23  *
24  * <p>'input' element specifies a text entry object.
25  * (Section 11.6.3, WAP WML Version 16-Jun-1999)</p>
26  *
27  * @version $Id: WMLInputElement.java,v 1.2 2004/02/24 23:34:05 mrglavas Exp $
28  * @author <a HREF="mailto:david@topware.com.tw">David Li</a>
29  */

30
31 public interface WMLInputElement extends WMLElement {
32
33     /**
34      * 'name' specifies the name of a variable after the user enters the text.
35      * (Section 11.6.3, WAP WML Version 16-Jun-1999)
36      */

37     public void setName(String JavaDoc newValue);
38     public String JavaDoc getName();
39
40     /**
41      * 'value' specifies the default value of the variable in 'name' attribute
42      * (Section 11.6.3, WAP WML Version 16-Jun-1999)
43      */

44     public void setValue(String JavaDoc newValue);
45     public String JavaDoc getValue();
46
47     /**
48      * 'type' specifies the type of text input area.
49      * Two values are allowed: 'text' and 'password' and default is 'text'
50      * (Section 11.6.3, WAP WML Version 16-Jun-1999)
51      */

52     public void setType(String JavaDoc newValue);
53     public String JavaDoc getType();
54
55     /**
56      * 'format' specifies the input mask for user input.
57      * (Section 11.6.3, WAP WML Version 16-Jun-1999)
58      */

59     public void setFormat(String JavaDoc newValue);
60     public String JavaDoc getFormat();
61
62     /**
63      * 'emptyok' specifies whether a empty input is allowed when a
64      * non-empty 'format' is specified. Default to be 'false'
65      * (Section 11.6.3, WAP WML Version 16-Jun-1999)
66      */

67     public void setEmptyOk(boolean newValue);
68     public boolean getEmptyOk();
69
70     /**
71      * 'size' specifies the width of the input in characters
72      * (Section 11.6.3, WAP WML Version 16-Jun-1999)
73      */

74     public void setSize(int newValue);
75     public int getSize();
76
77     /**
78      * 'maxlength' specifies the maximum number of characters to be
79      * enter.
80      * (Section 11.6.3, WAP WML Version 16-Jun-1999)
81      */

82     public void setMaxLength(int newValue);
83     public int getMaxLength();
84
85     /**
86      * 'title' specifies a title for this element
87      * (Section 11.6.3, WAP WML Version 16-Jun-1999)
88      */

89     public void setTitle(String JavaDoc newValue);
90     public String JavaDoc getTitle();
91
92     /**
93      * 'tabindex' specifies the tabbing position of the element
94      * (Section 11.6.1, WAP WML Version 16-Jun-1999)
95      */

96     public void setTabIndex(int newValue);
97     public int getTabIndex();
98
99     /**
100      * 'xml:lang' specifics the natural or formal language in which
101      * the document is written.
102      * (Section 8.8, WAP WML Version 16-Jun-1999)
103      */

104     public void setXmlLang(String JavaDoc newValue);
105     public String JavaDoc getXmlLang();
106 }
107
Popular Tags