KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > wireless > wml > dom > WMLInputElement


1 /*
2  * Enhydra Java Application Server Project
3  *
4  * The contents of this file are subject to the Enhydra Public License
5  * Version 1.1 (the "License"); you may not use this file except in
6  * compliance with the License. You may obtain a copy of the License on
7  * the Enhydra web site ( http://www.enhydra.org/ ).
8  *
9  * Software distributed under the License is distributed on an "AS IS"
10  * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
11  * the License for the specific terms governing rights and limitations
12  * under the License.
13  *
14  * The Initial Developer of the Original Code is DigitalSesame
15  * Portions created by DigitalSesame are Copyright (C) 1997-2000 DigitalSesame
16  * All Rights Reserved.
17  *
18  * Contributor(s):
19  *
20  * $Id: WMLInputElement.java,v 1.1.1.1 2003/03/10 16:36:08 taweili Exp $
21  */

22
23 /**
24  * The interface is modeled after DOM1 Spec for HTML from W3C.
25  * The DTD used in this DOM model is from
26  * http://www.wapforum.org/DTD/wml_1.1.xml
27  */

28
29 package org.enhydra.wireless.wml.dom;
30
31 /**
32  * 'input' element specifies a text entry object.
33  * (Section 11.6.3, WAP WML Version 16-Jun-1999)
34  */

35 public interface WMLInputElement extends WMLElement {
36
37     /**
38      * 'name' specifies the name of a variable after the user enters the text.
39      * (Section 11.6.3, WAP WML Version 16-Jun-1999)
40      */

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

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

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

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

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

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

86     public void setMaxLength(int newValue);
87     public int getMaxLength();
88
89     /**
90      * 'title' specifies a title for this element
91      * (Section 11.6.3, WAP WML Version 16-Jun-1999)
92      */

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

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

108     public void setXmlLang(String JavaDoc newValue);
109     public String JavaDoc getXmlLang();
110 }
111
Popular Tags