KickJava   Java API By Example, From Geeks To Geeks.

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


1 /**
2  * org/ozone-db/xml/dom/html/HTMLIFrameElementImpl.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.DOMExceptionImpl;
26 import org.ozoneDB.xml.dom.ElementImpl;
27 import org.w3c.dom.DOMException JavaDoc;
28 import org.w3c.dom.Document JavaDoc;
29 import org.w3c.dom.html.HTMLIFrameElement;
30
31
32 /**
33  * @version $Revision: 1.2 $ $Date: 2003/11/20 23:18:42 $
34  * @author <a HREF="mailto:arkin@trendline.co.il">Assaf Arkin</a>
35  * @see org.w3c.dom.html.HTMLIFrameElement
36  * @see ElementImpl
37  */

38 public final class HTMLIFrameElementImpl extends HTMLElementImpl implements HTMLIFrameElement {
39
40
41     public String JavaDoc getAlign() {
42         return capitalize( getAttribute( "align" ) );
43     }
44
45
46     public void setAlign( String JavaDoc align ) {
47         setAttribute( "align", align );
48     }
49
50
51     public String JavaDoc getFrameBorder() {
52         return getAttribute( "frameborder" );
53     }
54
55
56     public void setFrameBorder( String JavaDoc frameBorder ) {
57         setAttribute( "frameborder", frameBorder );
58     }
59
60
61     public String JavaDoc getHeight() {
62         return getAttribute( "height" );
63     }
64
65
66     public void setHeight( String JavaDoc height ) {
67         setAttribute( "height", height );
68     }
69
70
71     public String JavaDoc getLongDesc() {
72         return getAttribute( "longdesc" );
73     }
74
75
76     public void setLongDesc( String JavaDoc longDesc ) {
77         setAttribute( "longdesc", longDesc );
78     }
79
80
81     public String JavaDoc getMarginHeight() {
82         return getAttribute( "marginheight" );
83     }
84
85
86     public void setMarginHeight( String JavaDoc marginHeight ) {
87         setAttribute( "marginheight", marginHeight );
88     }
89
90
91     public String JavaDoc getMarginWidth() {
92         return getAttribute( "marginwidth" );
93     }
94
95
96     public void setMarginWidth( String JavaDoc marginWidth ) {
97         setAttribute( "marginwidth", marginWidth );
98     }
99
100
101     public String JavaDoc getName() {
102         return getAttribute( "name" );
103     }
104
105
106     public void setName( String JavaDoc name ) {
107         setAttribute( "name", name );
108     }
109
110
111     public String JavaDoc getScrolling() {
112         return capitalize( getAttribute( "scrolling" ) );
113     }
114
115
116     public void setScrolling( String JavaDoc scrolling ) {
117         setAttribute( "scrolling", scrolling );
118     }
119
120
121     public String JavaDoc getSrc() {
122         return getAttribute( "src" );
123     }
124
125
126     public void setSrc( String JavaDoc src ) {
127         setAttribute( "src", src );
128     }
129
130
131     public String JavaDoc getWidth() {
132         return getAttribute( "width" );
133     }
134
135
136     public void setWidth( String JavaDoc width ) {
137         setAttribute( "width", width );
138     }
139
140     /**
141      * The document this frame contains, if there is any and it is available,
142      * or <code>null</code> otherwise.
143      * @since DOM Level 2
144      */

145     public Document JavaDoc getContentDocument() {
146         throw new DOMExceptionImpl( DOMException.NOT_SUPPORTED_ERR,
147                 "HTMLIFrameElementImpl.getContentDocument(): ozone's persistent DOM doesn't support DOM level 2 yet." );
148
149     }
150
151     /**
152      * Constructor requires owner document.
153      *
154      * @param owner The owner HTML document
155      */

156     public HTMLIFrameElementImpl( HTMLDocumentImpl owner, String JavaDoc name ) {
157         super( owner, "IFRAME" );
158     }
159
160
161 }
162
Popular Tags