001: /**
002: * org/ozone-db/xml/dom/html/HTMLIFrameElementImpl.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.HTMLIFrameElement
029: * @see ElementImpl
030: */
031: public final class HTMLIFrameElementImpl extends HTMLElementImpl
032: implements HTMLIFrameElement {
033:
034: public String getAlign() {
035: return capitalize(getAttribute("align"));
036: }
037:
038: public void setAlign(String align) {
039: setAttribute("align", align);
040: }
041:
042: public String getFrameBorder() {
043: return getAttribute("frameborder");
044: }
045:
046: public void setFrameBorder(String frameBorder) {
047: setAttribute("frameborder", frameBorder);
048: }
049:
050: public String getHeight() {
051: return getAttribute("height");
052: }
053:
054: public void setHeight(String height) {
055: setAttribute("height", height);
056: }
057:
058: public String getLongDesc() {
059: return getAttribute("longdesc");
060: }
061:
062: public void setLongDesc(String longDesc) {
063: setAttribute("longdesc", longDesc);
064: }
065:
066: public String getMarginHeight() {
067: return getAttribute("marginheight");
068: }
069:
070: public void setMarginHeight(String marginHeight) {
071: setAttribute("marginheight", marginHeight);
072: }
073:
074: public String getMarginWidth() {
075: return getAttribute("marginwidth");
076: }
077:
078: public void setMarginWidth(String marginWidth) {
079: setAttribute("marginwidth", marginWidth);
080: }
081:
082: public String getName() {
083: return getAttribute("name");
084: }
085:
086: public void setName(String name) {
087: setAttribute("name", name);
088: }
089:
090: public String getScrolling() {
091: return capitalize(getAttribute("scrolling"));
092: }
093:
094: public void setScrolling(String scrolling) {
095: setAttribute("scrolling", scrolling);
096: }
097:
098: public String getSrc() {
099: return getAttribute("src");
100: }
101:
102: public void setSrc(String src) {
103: setAttribute("src", src);
104: }
105:
106: public String getWidth() {
107: return getAttribute("width");
108: }
109:
110: public void setWidth(String width) {
111: setAttribute("width", width);
112: }
113:
114: /**
115: * Constructor requires owner document.
116: *
117: * @param owner The owner HTML document
118: */
119: public HTMLIFrameElementImpl(HTMLDocumentImpl owner, String name) {
120: super (owner, "IFRAME");
121: }
122:
123: }
|