HTMLHRElementImpl.java :  » Swing-Library » Lobo-Java-Web-Browser » org » lobobrowser » html » domimpl » Java Open Source

Java Open Source » Swing Library » Lobo Java Web Browser 
Lobo Java Web Browser » org » lobobrowser » html » domimpl » HTMLHRElementImpl.java
package org.lobobrowser.html.domimpl;

import org.w3c.dom.html2.HTMLHRElement;

public class HTMLHRElementImpl extends HTMLAbstractUIElement implements HTMLHRElement {
  public HTMLHRElementImpl(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(String align) {
    this.setAttribute("align", align);
  }

  public void setNoShade(boolean noShade) {
    this.setAttribute("noshade", noShade ? "noshade" : null);
  }

  public void setSize(String size) {
    this.setAttribute("size", size);
  }

  public void setWidth(String width) {
    this.setAttribute("width", width);
  }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.