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.HTMLFrameElement;
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.HTMLFrameElement
026: * @see org.apache.xerces.dom.ElementImpl
027: */
028: public class HTMLFrameElementImpl extends HTMLElementImpl implements
029: HTMLFrameElement {
030:
031: private static final long serialVersionUID = 635237057173695984L;
032:
033: public String getFrameBorder() {
034: return getAttribute("frameborder");
035: }
036:
037: public void setFrameBorder(String frameBorder) {
038: setAttribute("frameborder", frameBorder);
039: }
040:
041: public String getLongDesc() {
042: return getAttribute("longdesc");
043: }
044:
045: public void setLongDesc(String longDesc) {
046: setAttribute("longdesc", longDesc);
047: }
048:
049: public String getMarginHeight() {
050: return getAttribute("marginheight");
051: }
052:
053: public void setMarginHeight(String marginHeight) {
054: setAttribute("marginheight", marginHeight);
055: }
056:
057: public String getMarginWidth() {
058: return getAttribute("marginwidth");
059: }
060:
061: public void setMarginWidth(String marginWidth) {
062: setAttribute("marginwidth", marginWidth);
063: }
064:
065: public String getName() {
066: return getAttribute("name");
067: }
068:
069: public void setName(String name) {
070: setAttribute("name", name);
071: }
072:
073: public boolean getNoResize() {
074: return getBinary("noresize");
075: }
076:
077: public void setNoResize(boolean noResize) {
078: setAttribute("noresize", noResize);
079: }
080:
081: public String getScrolling() {
082: return capitalize(getAttribute("scrolling"));
083: }
084:
085: public void setScrolling(String scrolling) {
086: setAttribute("scrolling", scrolling);
087: }
088:
089: public String getSrc() {
090: return getAttribute("src");
091: }
092:
093: public void setSrc(String src) {
094: setAttribute("src", src);
095: }
096:
097: /**
098: * Constructor requires owner document.
099: *
100: * @param owner The owner HTML document
101: */
102: public HTMLFrameElementImpl(HTMLDocumentImpl owner, String name) {
103: super(owner, name);
104: }
105:
106: }
|