001: /*
002: * Licensed to the Apache Software Foundation (ASF) under one or more
003: * contributor license agreements. See the NOTICE file distributed with
004: * this work for additional information regarding copyright ownership.
005: * The ASF licenses this file to You under the Apache License, Version 2.0
006: * (the "License"); you may not use this file except in compliance with
007: * the License. You may obtain a copy of the License at
008: *
009: * http://www.apache.org/licenses/LICENSE-2.0
010: *
011: * Unless required by applicable law or agreed to in writing, software
012: * distributed under the License is distributed on an "AS IS" BASIS,
013: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014: * See the License for the specific language governing permissions and
015: * limitations under the License.
016: */
017: package org.apache.wml;
018:
019: /**
020: * <p>The interface is modeled after DOM1 Spec for HTML from W3C.
021: * The DTD used in this DOM model is from
022: * <a href="http://www.wapforum.org/DTD/wml_1.1.xml">
023: * http://www.wapforum.org/DTD/wml_1.1.xml</a></p>
024: *
025: * <p>'input' element specifies a text entry object.
026: * (Section 11.6.3, WAP WML Version 16-Jun-1999)</p>
027: *
028: * @version $Id: WMLInputElement.java 447258 2006-09-18 05:41:23Z mrglavas $
029: * @author <a href="mailto:david@topware.com.tw">David Li</a>
030: */
031:
032: public interface WMLInputElement extends WMLElement {
033:
034: /**
035: * 'name' specifies the name of a variable after the user enters the text.
036: * (Section 11.6.3, WAP WML Version 16-Jun-1999)
037: */
038: public void setName(String newValue);
039:
040: public String getName();
041:
042: /**
043: * 'value' specifies the default value of the variable in 'name' attribute
044: * (Section 11.6.3, WAP WML Version 16-Jun-1999)
045: */
046: public void setValue(String newValue);
047:
048: public String getValue();
049:
050: /**
051: * 'type' specifies the type of text input area.
052: * Two values are allowed: 'text' and 'password' and default is 'text'
053: * (Section 11.6.3, WAP WML Version 16-Jun-1999)
054: */
055: public void setType(String newValue);
056:
057: public String getType();
058:
059: /**
060: * 'format' specifies the input mask for user input.
061: * (Section 11.6.3, WAP WML Version 16-Jun-1999)
062: */
063: public void setFormat(String newValue);
064:
065: public String getFormat();
066:
067: /**
068: * 'emptyok' specifies whether a empty input is allowed when a
069: * non-empty 'format' is specified. Default to be 'false'
070: * (Section 11.6.3, WAP WML Version 16-Jun-1999)
071: */
072: public void setEmptyOk(boolean newValue);
073:
074: public boolean getEmptyOk();
075:
076: /**
077: * 'size' specifies the width of the input in characters
078: * (Section 11.6.3, WAP WML Version 16-Jun-1999)
079: */
080: public void setSize(int newValue);
081:
082: public int getSize();
083:
084: /**
085: * 'maxlength' specifies the maximum number of characters to be
086: * enter.
087: * (Section 11.6.3, WAP WML Version 16-Jun-1999)
088: */
089: public void setMaxLength(int newValue);
090:
091: public int getMaxLength();
092:
093: /**
094: * 'title' specifies a title for this element
095: * (Section 11.6.3, WAP WML Version 16-Jun-1999)
096: */
097: public void setTitle(String newValue);
098:
099: public String getTitle();
100:
101: /**
102: * 'tabindex' specifies the tabbing position of the element
103: * (Section 11.6.1, WAP WML Version 16-Jun-1999)
104: */
105: public void setTabIndex(int newValue);
106:
107: public int getTabIndex();
108:
109: /**
110: * 'xml:lang' specifics the natural or formal language in which
111: * the document is written.
112: * (Section 8.8, WAP WML Version 16-Jun-1999)
113: */
114: public void setXmlLang(String newValue);
115:
116: public String getXmlLang();
117: }
|