KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > html > dom > HTMLImageElementImpl


1 /*
2  * Copyright 1999,2000,2004,2005 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.html.dom;
17
18 import org.w3c.dom.html.HTMLImageElement;
19
20 /**
21  * @xerces.internal
22  * @version $Revision: 1.9 $ $Date: 2005/04/18 01:04:17 $
23  * @author <a HREF="mailto:arkin@exoffice.com">Assaf Arkin</a>
24  * @see org.w3c.dom.html.HTMLImageElement
25  * @see org.apache.xerces.dom.ElementImpl
26  */

27 public class HTMLImageElementImpl
28     extends HTMLElementImpl
29     implements HTMLImageElement
30 {
31
32     private static final long serialVersionUID = 3545514006426300471L;
33
34     public String JavaDoc getLowSrc()
35     {
36         return getAttribute( "lowsrc" );
37     }
38     
39     
40     public void setLowSrc( String JavaDoc lowSrc )
41     {
42         setAttribute( "lowsrc", lowSrc );
43     }
44
45   
46        public String JavaDoc getSrc()
47     {
48         return getAttribute( "src" );
49     }
50     
51     
52     public void setSrc( String JavaDoc src )
53     {
54         setAttribute( "src", src );
55     }
56
57     
58       public String JavaDoc getName()
59     {
60         return getAttribute( "name" );
61     }
62     
63     
64     public void setName( String JavaDoc name )
65     {
66         setAttribute( "name", name );
67     }
68
69     
70     public String JavaDoc getAlign()
71     {
72         return capitalize( getAttribute( "align" ) );
73     }
74     
75     
76     public void setAlign( String JavaDoc align )
77     {
78         setAttribute( "align", align );
79     }
80   
81     
82     public String JavaDoc getAlt()
83     {
84         return getAttribute( "alt" );
85     }
86     
87     
88     public void setAlt( String JavaDoc alt )
89     {
90         setAttribute( "alt", alt );
91     }
92
93     
94     public String JavaDoc getBorder()
95     {
96         return getAttribute( "border" );
97     }
98     
99     
100     public void setBorder( String JavaDoc border )
101     {
102         setAttribute( "border", border );
103     }
104
105   
106       public String JavaDoc getHeight()
107     {
108         return getAttribute( "height" );
109     }
110     
111     
112     public void setHeight( String JavaDoc height )
113     {
114         setAttribute( "height", height );
115     }
116
117     
118     public String JavaDoc getHspace()
119     {
120         return getAttribute( "hspace" );
121     }
122     
123     
124     public void setHspace( String JavaDoc hspace )
125     {
126         setAttribute( "hspace", hspace );
127     }
128     
129   
130     public boolean getIsMap()
131     {
132         return getBinary( "ismap" );
133     }
134     
135     
136     public void setIsMap( boolean isMap )
137     {
138         setAttribute( "ismap", isMap );
139     }
140
141     
142     public String JavaDoc getLongDesc()
143     {
144         return getAttribute( "longdesc" );
145     }
146     
147     
148     public void setLongDesc( String JavaDoc longDesc )
149     {
150         setAttribute( "longdesc", longDesc );
151     }
152     
153   
154     public String JavaDoc getUseMap()
155     {
156         return getAttribute( "useMap" );
157     }
158     
159     
160     public void setUseMap( String JavaDoc useMap )
161     {
162         setAttribute( "useMap", useMap );
163     }
164     
165
166     public String JavaDoc getVspace()
167     {
168         return getAttribute( "vspace" );
169     }
170     
171     
172     public void setVspace( String JavaDoc vspace )
173     {
174         setAttribute( "vspace", vspace );
175     }
176
177   
178       public String JavaDoc getWidth()
179     {
180         return getAttribute( "width" );
181     }
182     
183     
184     public void setWidth( String JavaDoc width )
185     {
186         setAttribute( "width", width );
187     }
188
189     
190     /**
191      * Constructor requires owner document.
192      *
193      * @param owner The owner HTML document
194      */

195     public HTMLImageElementImpl( HTMLDocumentImpl owner, String JavaDoc name )
196     {
197         super( owner, name );
198     }
199
200
201 }
202
203
Popular Tags