001: /*
002: * Licensed to the Apache Software Foundation (ASF) under one or more
003: * contributor license agreements. See the NOTICE file distributed with
004: * this work for additional information regarding copyright ownership.
005: * The ASF licenses this file to You under the Apache License, Version 2.0
006: * (the "License"); you may not use this file except in compliance with
007: * the License. You may obtain a copy of the License at
008: *
009: * http://www.apache.org/licenses/LICENSE-2.0
010: *
011: * Unless required by applicable law or agreed to in writing, software
012: * distributed under the License is distributed on an "AS IS" BASIS,
013: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014: * See the License for the specific language governing permissions and
015: * limitations under the License.
016: */
017: package org.apache.html.dom;
018:
019: import org.w3c.dom.html.HTMLIFrameElement;
020:
021: /**
022: * @xerces.internal
023: * @version $Revision: 447255 $ $Date: 2006-09-18 01:36:42 -0400 (Mon, 18 Sep 2006) $
024: * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
025: * @see org.w3c.dom.html.HTMLIFrameElement
026: * @see org.apache.xerces.dom.ElementImpl
027: */
028: public class HTMLIFrameElementImpl extends HTMLElementImpl implements
029: HTMLIFrameElement {
030:
031: private static final long serialVersionUID = 2393622754706230429L;
032:
033: public String getAlign() {
034: return capitalize(getAttribute("align"));
035: }
036:
037: public void setAlign(String align) {
038: setAttribute("align", align);
039: }
040:
041: public String getFrameBorder() {
042: return getAttribute("frameborder");
043: }
044:
045: public void setFrameBorder(String frameBorder) {
046: setAttribute("frameborder", frameBorder);
047: }
048:
049: public String getHeight() {
050: return getAttribute("height");
051: }
052:
053: public void setHeight(String height) {
054: setAttribute("height", height);
055: }
056:
057: public String getLongDesc() {
058: return getAttribute("longdesc");
059: }
060:
061: public void setLongDesc(String longDesc) {
062: setAttribute("longdesc", longDesc);
063: }
064:
065: public String getMarginHeight() {
066: return getAttribute("marginheight");
067: }
068:
069: public void setMarginHeight(String marginHeight) {
070: setAttribute("marginheight", marginHeight);
071: }
072:
073: public String getMarginWidth() {
074: return getAttribute("marginwidth");
075: }
076:
077: public void setMarginWidth(String marginWidth) {
078: setAttribute("marginwidth", marginWidth);
079: }
080:
081: public String getName() {
082: return getAttribute("name");
083: }
084:
085: public void setName(String name) {
086: setAttribute("name", name);
087: }
088:
089: public String getScrolling() {
090: return capitalize(getAttribute("scrolling"));
091: }
092:
093: public void setScrolling(String scrolling) {
094: setAttribute("scrolling", scrolling);
095: }
096:
097: public String getSrc() {
098: return getAttribute("src");
099: }
100:
101: public void setSrc(String src) {
102: setAttribute("src", src);
103: }
104:
105: public String getWidth() {
106: return getAttribute("width");
107: }
108:
109: public void setWidth(String width) {
110: setAttribute("width", width);
111: }
112:
113: /**
114: * Constructor requires owner document.
115: *
116: * @param owner The owner HTML document
117: */
118: public HTMLIFrameElementImpl(HTMLDocumentImpl owner, String name) {
119: super(owner, name);
120: }
121:
122: }
|