blob: bc2825fffd7d4e415f5b28ecc33a207c136a396b [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.Node;
import org.w3c.dom.html.HTMLFormElement;
import org.w3c.dom.html.HTMLLegendElement;
public class SHLegendElement extends SHElement implements HTMLLegendElement {
protected SHLegendElement(String tagName, SHDocument doc) {
super(tagName, doc);
}
public HTMLFormElement getForm() {
for (Node ret = getParentNode(); ret != null; ret = ret.getParentNode()) {
if (ret instanceof HTMLFormElement)
return (HTMLFormElement) ret;
}
return null;
}
public String getAccessKey() {
return getAttribute("accesskey");
}
public void setAccessKey(String accessKey) {
setAttribute("accesskey", accessKey);
}
public String getAlign() {
return getAttribute("aling");
}
public void setAlign(String align) {
setAttribute("align", align);
}
}