KickJava   Java API By Example, From Geeks To Geeks.

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


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>'img' specifies an image in a text flow
25  * (Section 11.9, WAP WML Version 16-Jun-1999)</p>
26  *
27  * @version $Id: WMLImgElement.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 public interface WMLImgElement extends WMLElement {
31
32     /**
33      * 'alt' specifies an alternative text for the image
34      * (Section 11.9, WAP WML Version 16-Jun-1999)
35      */

36     public void setAlt(String JavaDoc newValue);
37     public String JavaDoc getAlt();
38
39     /**
40      * 'src' specifies URI for the source images
41      * (Section 11.9, WAP WML Version 16-Jun-1999)
42      */

43     public void setSrc(String JavaDoc newValue);
44     public String JavaDoc getSrc();
45
46     /**
47      * 'localsrc' specifies an alternative internal representation of
48      * the image.
49      * (Section 11.9, WAP WML Version 16-Jun-1999)
50      */

51     public void setLocalSrc(String JavaDoc newValue);
52     public String JavaDoc getLocalSrc();
53
54     /**
55      * 'vspace' specifies the abount of white space to be inserted
56      * above and below
57      * (Section 11.9, WAP WML Version 16-Jun-1999)
58      */

59     public void setVspace(String JavaDoc newValue);
60     public String JavaDoc getVspace();
61
62     /**
63      * 'hspace' specifies the abount of white space to be inserted
64      * left and right
65      * (Section 11.9, WAP WML Version 16-Jun-1999)
66      */

67     public void setHspace(String JavaDoc newValue);
68     public String JavaDoc getHspace();
69
70     /**
71      * 'align' specifies the alignment of the image within the text
72      * flow.
73      * (Section 11.8, WAP WML Version 16-Jun-1999)
74      */

75     public void setAlign(String JavaDoc newValue);
76     public String JavaDoc getAlign();
77
78     /**
79      * 'width' specifies the width of an image.
80      * (Section 11.9, WAP WML Version 16-Jun-1999)
81      */

82     public void setWidth(String JavaDoc newValue);
83     public String JavaDoc getWidth();
84
85     /**
86      * 'height' specifies the height of an image.
87      * (Section 11.9, WAP WML Version 16-Jun-1999)
88      */

89     public void setHeight(String JavaDoc newValue);
90     public String JavaDoc getHeight();
91
92     /**
93      * The xml:lang that specifics the natural or formal language in
94      * which the document is written.
95      * (Section 8.8, WAP WML Version 16-Jun-1999)
96      */

97     public void setXmlLang(String JavaDoc newValue);
98     public String JavaDoc getXmlLang();
99 }
100
Popular Tags