KickJava   Java API By Example, From Geeks To Geeks.

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


1 /**
2  * org/ozone-db/xml/dom/html/HTMLBodyElementImpl.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 package org.ozoneDB.xml.dom.html;
22
23 import org.ozoneDB.xml.dom.ElementImpl;
24 import org.w3c.dom.html.HTMLBodyElement;
25
26
27 /**
28  * @version $Revision: 1.2 $ $Date: 2003/11/20 23:18:42 $
29  * @author <a HREF="mailto:arkin@trendline.co.il">Assaf Arkin</a>
30  * @see org.w3c.dom.html.HTMLBodyElement
31  * @see ElementImpl
32  */

33 public final class HTMLBodyElementImpl extends HTMLElementImpl implements HTMLBodyElement {
34
35
36     public String JavaDoc getALink() {
37         return getAttribute( "alink" );
38     }
39
40
41     public void setALink( String JavaDoc aLink ) {
42         setAttribute( "alink", aLink );
43     }
44
45
46     public String JavaDoc getBackground() {
47         return getAttribute( "background" );
48     }
49
50
51     public void setBackground( String JavaDoc background ) {
52         setAttribute( "background", background );
53     }
54
55
56     public String JavaDoc getBgColor() {
57         return getAttribute( "bgcolor" );
58     }
59
60
61     public void setBgColor( String JavaDoc bgColor ) {
62         setAttribute( "bgcolor", bgColor );
63     }
64
65
66     public String JavaDoc getLink() {
67         return getAttribute( "link" );
68     }
69
70
71     public void setLink( String JavaDoc link ) {
72         setAttribute( "link", link );
73     }
74
75
76     public String JavaDoc getText() {
77         return getAttribute( "text" );
78     }
79
80
81     public void setText( String JavaDoc text ) {
82         setAttribute( "text", text );
83     }
84
85
86     public String JavaDoc getVLink() {
87         return getAttribute( "vlink" );
88     }
89
90
91     public void setVLink( String JavaDoc vLink ) {
92         setAttribute( "vlink", vLink );
93     }
94
95
96     /**
97      * Constructor requires owner document.
98      *
99      * @param owner The owner HTML document
100      */

101     public HTMLBodyElementImpl( HTMLDocumentImpl owner, String JavaDoc name ) {
102         super( owner, "BODY" );
103     }
104
105 }
106
Popular Tags