KickJava   Java API By Example, From Geeks To Geeks.

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


1 /**
2  * org/ozone-db/xml/dom/html/HTMLFrameElementImpl.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.HTMLFrameElement;
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.HTMLFrameElement
36  * @see ElementImpl
37  */

38 public final class HTMLFrameElementImpl extends HTMLElementImpl implements HTMLFrameElement {
39
40
41     public String JavaDoc getFrameBorder() {
42         return getAttribute( "frameborder" );
43     }
44
45
46     public void setFrameBorder( String JavaDoc frameBorder ) {
47         setAttribute( "frameborder", frameBorder );
48     }
49
50
51     public String JavaDoc getLongDesc() {
52         return getAttribute( "longdesc" );
53     }
54
55
56     public void setLongDesc( String JavaDoc longDesc ) {
57         setAttribute( "longdesc", longDesc );
58     }
59
60
61     public String JavaDoc getMarginHeight() {
62         return getAttribute( "marginheight" );
63     }
64
65
66     public void setMarginHeight( String JavaDoc marginHeight ) {
67         setAttribute( "marginheight", marginHeight );
68     }
69
70
71     public String JavaDoc getMarginWidth() {
72         return getAttribute( "marginwidth" );
73     }
74
75
76     public void setMarginWidth( String JavaDoc marginWidth ) {
77         setAttribute( "marginwidth", marginWidth );
78     }
79
80
81     public String JavaDoc getName() {
82         return getAttribute( "name" );
83     }
84
85
86     public void setName( String JavaDoc name ) {
87         setAttribute( "name", name );
88     }
89
90
91     public boolean getNoResize() {
92         return getAttribute( "noresize" ) != null;
93     }
94
95
96     public void setNoResize( boolean noResize ) {
97         setAttribute( "noresize", noResize ? "" : null );
98     }
99
100
101     public String JavaDoc getScrolling() {
102         return capitalize( getAttribute( "scrolling" ) );
103     }
104
105
106     public void setScrolling( String JavaDoc scrolling ) {
107         setAttribute( "scrolling", scrolling );
108     }
109
110
111     public String JavaDoc getSrc() {
112         return getAttribute( "src" );
113     }
114
115
116     public void setSrc( String JavaDoc src ) {
117         setAttribute( "src", src );
118     }
119
120     /**
121      * The document this frame contains, if there is any and it is available,
122      * or <code>null</code> otherwise.
123      * @since DOM Level 2
124      */

125     public Document JavaDoc getContentDocument() {
126         throw new DOMExceptionImpl( DOMException.NOT_SUPPORTED_ERR,
127                 "HTMLFrameElementImpl.getContentDocument(): ozone's persistent DOM doesn't support DOM level 2 yet." );
128     }
129
130     /**
131      * Constructor requires owner document.
132      *
133      * @param owner The owner HTML document
134      */

135     public HTMLFrameElementImpl( HTMLDocumentImpl owner, String JavaDoc name ) {
136         super( owner, "FRAME" );
137     }
138
139
140 }
141
Popular Tags