01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17: package org.apache.wml;
18:
19: /**
20: * <p>The interface is modeled after DOM1 Spec for HTML from W3C.
21: * The DTD used in this DOM model is from
22: * <a href="http://www.wapforum.org/DTD/wml_1.1.xml">
23: * http://www.wapforum.org/DTD/wml_1.1.xml</a></p>
24: *
25: * <p>'select' element lets user pick from a list of options.
26: * (Section 11.6.2.1, WAP WML Version 16-Jun-1999)</p>
27: *
28: * @version $Id: WMLSelectElement.java 447258 2006-09-18 05:41:23Z mrglavas $
29: * @author <a href="mailto:david@topware.com.tw">David Li</a>
30: */
31: public interface WMLSelectElement extends WMLElement {
32:
33: /**
34: * 'tabindex' specifies the tabbing position of the element
35: * (Section 11.6.1, WAP WML Version 16-Jun-1999)
36: */
37: public void setTabIndex(int newValue);
38:
39: public int getTabIndex();
40:
41: /**
42: * 'multiple' indicates whether a list accept multiple selection
43: * (Section 11.6.2.1, WAP WML Version 16-Jun-1999)
44: */
45: public void setMultiple(boolean newValue);
46:
47: public boolean getMultiple();
48:
49: /**
50: * 'name' specifies the name of variable to be set.
51: * (Section 11.6.2.1, WAP WML Version 16-Jun-1999)
52: */
53: public void setName(String newValue);
54:
55: public String getName();
56:
57: /**
58: * 'value' specifics the default value of the variable of 'name'
59: * (Section 11.6.2.1, WAP WML Version 16-Jun-1999)
60: */
61: public void setValue(String newValue);
62:
63: public String getValue();
64:
65: /**
66: * 'title' specifies a title for this element
67: * (Section 11.6.2.1, WAP WML Version 16-Jun-1999)
68: */
69: public void setTitle(String newValue);
70:
71: public String getTitle();
72:
73: /**
74: * 'iname' specifies name of variable to be set with the index
75: * result of selection.
76: * (Section 11.6.2.1, WAP WML Version 16-Jun-1999)
77: */
78: public void setIName(String newValue);
79:
80: public String getIName();
81:
82: /**
83: * 'ivalue' specifies the default of the variable 'iname'
84: */
85: public void setIValue(String newValue);
86:
87: public String getIValue();
88:
89: /**
90: * 'xml:lang' specifics the natural or formal language in which
91: * the document is written.
92: * (Section 8.8, WAP WML Version 16-Jun-1999)
93: */
94: public void setXmlLang(String newValue);
95:
96: public String getXmlLang();
97: }
|