org.cobraparser.html.domimpl.HTMLHRElementImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of Cobra Show documentation
Show all versions of Cobra Show documentation
Cobra is the rendering engine designed for LoboBrowser
package org.cobraparser.html.domimpl;
import org.w3c.dom.html.HTMLHRElement;
public class HTMLHRElementImpl extends HTMLAbstractUIElement implements HTMLHRElement {
public HTMLHRElementImpl(final String name) {
super(name);
}
public String getAlign() {
return this.getAttribute("align");
}
public boolean getNoShade() {
return "noshade".equalsIgnoreCase(this.getAttribute("noshade"));
}
public String getSize() {
return this.getAttribute("size");
}
public String getWidth() {
return this.getAttribute("width");
}
public void setAlign(final String align) {
this.setAttribute("align", align);
}
public void setNoShade(final boolean noShade) {
this.setAttribute("noshade", noShade ? "noshade" : null);
}
public void setSize(final String size) {
this.setAttribute("size", size);
}
public void setWidth(final String width) {
this.setAttribute("width", width);
}
}