001: /**
002: * org/ozone-db/xml/dom/html/HTMLFrameElementImpl.java
003: *
004: * The contents of this file are subject to the OpenXML Public
005: * License Version 1.0; you may not use this file except in compliance
006: * with the License. You may obtain a copy of the License at
007: * http://www.openxml.org/license.html
008: *
009: * THIS SOFTWARE IS DISTRIBUTED ON AN "AS IS" BASIS WITHOUT WARRANTY
010: * OF ANY KIND, EITHER EXPRESSED OR IMPLIED. THE INITIAL DEVELOPER
011: * AND ALL CONTRIBUTORS SHALL NOT BE LIABLE FOR ANY DAMAGES AS A
012: * RESULT OF USING, MODIFYING OR DISTRIBUTING THIS SOFTWARE OR ITS
013: * DERIVATIVES. SEE THE LICENSE FOR THE SPECIFIC LANGUAGE GOVERNING
014: * RIGHTS AND LIMITATIONS UNDER THE LICENSE.
015: *
016: * The Initial Developer of this code under the License is Assaf Arkin.
017: * Portions created by Assaf Arkin are Copyright (C) 1998, 1999.
018: * All Rights Reserved.
019: */package org.ozoneDB.xml.dom.html;
020:
021: import org.ozoneDB.xml.dom.*;
022: import org.w3c.dom.*;
023: import org.w3c.dom.html.*;
024:
025: /**
026: * @version $Revision: 1.1 $ $Date: 2001/12/18 11:03:24 $
027: * @author <a href="mailto:arkin@trendline.co.il">Assaf Arkin</a>
028: * @see org.w3c.dom.html.HTMLFrameElement
029: * @see ElementImpl
030: */
031: public final class HTMLFrameElementImpl extends HTMLElementImpl
032: implements HTMLFrameElement {
033:
034: public String getFrameBorder() {
035: return getAttribute("frameborder");
036: }
037:
038: public void setFrameBorder(String frameBorder) {
039: setAttribute("frameborder", frameBorder);
040: }
041:
042: public String getLongDesc() {
043: return getAttribute("longdesc");
044: }
045:
046: public void setLongDesc(String longDesc) {
047: setAttribute("longdesc", longDesc);
048: }
049:
050: public String getMarginHeight() {
051: return getAttribute("marginheight");
052: }
053:
054: public void setMarginHeight(String marginHeight) {
055: setAttribute("marginheight", marginHeight);
056: }
057:
058: public String getMarginWidth() {
059: return getAttribute("marginwidth");
060: }
061:
062: public void setMarginWidth(String marginWidth) {
063: setAttribute("marginwidth", marginWidth);
064: }
065:
066: public String getName() {
067: return getAttribute("name");
068: }
069:
070: public void setName(String name) {
071: setAttribute("name", name);
072: }
073:
074: public boolean getNoResize() {
075: return getAttribute("noresize") != null;
076: }
077:
078: public void setNoResize(boolean noResize) {
079: setAttribute("noresize", noResize ? "" : null);
080: }
081:
082: public String getScrolling() {
083: return capitalize(getAttribute("scrolling"));
084: }
085:
086: public void setScrolling(String scrolling) {
087: setAttribute("scrolling", scrolling);
088: }
089:
090: public String getSrc() {
091: return getAttribute("src");
092: }
093:
094: public void setSrc(String src) {
095: setAttribute("src", src);
096: }
097:
098: /**
099: * Constructor requires owner document.
100: *
101: * @param owner The owner HTML document
102: */
103: public HTMLFrameElementImpl(HTMLDocumentImpl owner, String name) {
104: super (owner, "FRAME");
105: }
106:
107: }
|