1 package org.lobobrowser.html.domimpl; 2 3 import org.w3c.dom.html2.HTMLHRElement; 4 5 public class HTMLHRElementImpl extends HTMLAbstractUIElement implements HTMLHRElement { 6 public HTMLHRElementImpl(String name) { 7 super(name); 8 } 9 10 public String getAlign() { 11 return this.getAttribute("align"); 12 } 13 14 public boolean getNoShade() { 15 return "noshade".equalsIgnoreCase(this.getAttribute("noshade")); 16 } 17 18 public String getSize() { 19 return this.getAttribute("size"); 20 } 21 22 public String getWidth() { 23 return this.getAttribute("width"); 24 } 25 26 public void setAlign(String align) { 27 this.setAttribute("align", align); 28 } 29 30 public void setNoShade(boolean noShade) { 31 this.setAttribute("noshade", noShade ? "noshade" : null); 32 } 33 34 public void setSize(String size) { 35 this.setAttribute("size", size); 36 } 37 38 public void setWidth(String width) { 39 this.setAttribute("width", width); 40 } 41 } 42 | Popular Tags |