All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.cobraparser.html.domimpl.HTMLHRElementImpl Maven / Gradle / Ivy

There is a newer version: 1.0.2
Show newest version
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);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy