01: /**
02: * org/ozone-db/xml/dom/html/HTMLBodyElementImpl.java
03: *
04: * The contents of this file are subject to the OpenXML Public
05: * License Version 1.0; you may not use this file except in compliance
06: * with the License. You may obtain a copy of the License at
07: * http://www.openxml.org/license.html
08: *
09: * 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: */package org.ozoneDB.xml.dom.html;
20:
21: import org.ozoneDB.xml.dom.*;
22: import org.w3c.dom.*;
23: import org.w3c.dom.html.*;
24:
25: /**
26: * @version $Revision: 1.1 $ $Date: 2001/12/18 11:03:24 $
27: * @author <a href="mailto:arkin@trendline.co.il">Assaf Arkin</a>
28: * @see org.w3c.dom.html.HTMLBodyElement
29: * @see ElementImpl
30: */
31: public final class HTMLBodyElementImpl extends HTMLElementImpl
32: implements HTMLBodyElement {
33:
34: public String getALink() {
35: return getAttribute("alink");
36: }
37:
38: public void setALink(String aLink) {
39: setAttribute("alink", aLink);
40: }
41:
42: public String getBackground() {
43: return getAttribute("background");
44: }
45:
46: public void setBackground(String background) {
47: setAttribute("background", background);
48: }
49:
50: public String getBgColor() {
51: return getAttribute("bgcolor");
52: }
53:
54: public void setBgColor(String bgColor) {
55: setAttribute("bgcolor", bgColor);
56: }
57:
58: public String getLink() {
59: return getAttribute("link");
60: }
61:
62: public void setLink(String link) {
63: setAttribute("link", link);
64: }
65:
66: public String getText() {
67: return getAttribute("text");
68: }
69:
70: public void setText(String text) {
71: setAttribute("text", text);
72: }
73:
74: public String getVLink() {
75: return getAttribute("vlink");
76: }
77:
78: public void setVLink(String vLink) {
79: setAttribute("vlink", vLink);
80: }
81:
82: /**
83: * Constructor requires owner document.
84: *
85: * @param owner The owner HTML document
86: */
87: public HTMLBodyElementImpl(HTMLDocumentImpl owner, String name) {
88: super (owner, "BODY");
89: }
90:
91: }
|