KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > ozoneDB > xml > dom > html > HTMLImageElementImpl


1 /**
2  * org/ozone-db/xml/dom/html/HTMLImageElementImpl.java
3  *
4  * The contents of this file are subject to the OpenXML Public
5  * License Version 1.0; you may not use this file except in compliance
6  * with the License. You may obtain a copy of the License at
7  * http://www.openxml.org/license.html
8  *
9  * THIS SOFTWARE IS DISTRIBUTED ON AN "AS IS" BASIS WITHOUT WARRANTY
10  * OF ANY KIND, EITHER EXPRESSED OR IMPLIED. THE INITIAL DEVELOPER
11  * AND ALL CONTRIBUTORS SHALL NOT BE LIABLE FOR ANY DAMAGES AS A
12  * RESULT OF USING, MODIFYING OR DISTRIBUTING THIS SOFTWARE OR ITS
13  * DERIVATIVES. SEE THE LICENSE FOR THE SPECIFIC LANGUAGE GOVERNING
14  * RIGHTS AND LIMITATIONS UNDER THE LICENSE.
15  *
16  * The Initial Developer of this code under the License is Assaf Arkin.
17  * Portions created by Assaf Arkin are Copyright (C) 1998, 1999.
18  * All Rights Reserved.
19  */

20
21
22 package org.ozoneDB.xml.dom.html;
23
24
25 import org.ozoneDB.xml.dom.ElementImpl;
26 import org.w3c.dom.html.HTMLImageElement;
27
28
29 /**
30  * @version $Revision: 1.2 $ $Date: 2003/11/20 23:18:42 $
31  * @author <a HREF="mailto:arkin@trendline.co.il">Assaf Arkin</a>
32  * @see org.w3c.dom.html.HTMLImageElement
33  * @see ElementImpl
34  */

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

173     public HTMLImageElementImpl( HTMLDocumentImpl owner, String JavaDoc name ) {
174         super( owner, "IMG" );
175     }
176
177
178 }
179
Popular Tags