blob: 675cf991ec9e3b845fb5f13fa1b7c13cfc0a7fbc [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 1998, 2008 IBM Corporation and Others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Goh KONDOH - initial API and implementation
*******************************************************************************/
package org.eclipse.actf.model.dom.html.impl;
import org.w3c.dom.Document;
import org.w3c.dom.html.HTMLFrameElement;
public class SHFrameElement extends SHElement implements HTMLFrameElement {
protected SHFrameElement(String tagName, SHDocument doc) {
super(tagName, doc);
}
public String getFrameBorder() {
return getAttribute("frameborder");
}
public void setFrameBorder(String frameBorder) {
setAttribute("frameborder", frameBorder);
}
public String getLongDesc() {
return getAttribute("longdesc");
}
public void setLongDesc(String longDesc) {
setAttribute("longdesc", longDesc);
}
public String getMarginHeight() {
return getAttribute("marginheight");
}
public void setMarginHeight(String marginHeight) {
setAttribute("marginheight", marginHeight);
}
public String getMarginWidth() {
return getAttribute("marginwidth");
}
public void setMarginWidth(String marginWidth) {
setAttribute("marginwidth", marginWidth);
}
public String getName() {
return getAttribute("name");
}
public void setName(String name) {
setAttribute("name", name);
}
public boolean getNoResize() {
String val = getAttribute("noresize");
return val != null && val.length() != 0;
}
public void setNoResize(boolean noResize) {
setAttribute("noresize", noResize ? "noresize" : null);
}
public String getScrolling() {
return getAttribute("scrolling");
}
public void setScrolling(String scrolling) {
setAttribute("scrolling", scrolling);
}
public String getSrc() {
return getAttribute("src");
}
public void setSrc(String src) {
setAttribute("src", src);
}
private Document contentDoc;
public Document getContentDocument() {
return contentDoc;
}
/**
* Sets the content document this frame contains.
*/
public void setContentDocument(Document contentDoc) {
this.contentDoc = contentDoc;
}
}