1 20 21 22 package org.ozoneDB.xml.dom.html; 23 24 25 import org.ozoneDB.xml.dom.ElementImpl; 26 import org.w3c.dom.html.HTMLHRElement; 27 28 29 35 public final class HTMLHRElementImpl extends HTMLElementImpl implements HTMLHRElement { 36 37 38 public String getAlign() { 39 return capitalize( getAttribute( "align" ) ); 40 } 41 42 43 public void setAlign( String align ) { 44 setAttribute( "align", align ); 45 } 46 47 48 public boolean getNoShade() { 49 return getAttribute( "noshade" ) != null; 50 } 51 52 53 public void setNoShade( boolean noShade ) { 54 setAttribute( "noshade", noShade ? "" : null ); 55 } 56 57 58 public String getSize() { 59 return getAttribute( "size" ); 60 } 61 62 63 public void setSize( String size ) { 64 setAttribute( "size", size ); 65 } 66 67 68 public String getWidth() { 69 return getAttribute( "width" ); 70 } 71 72 73 public void setWidth( String width ) { 74 setAttribute( "width", width ); 75 } 76 77 78 83 public HTMLHRElementImpl( HTMLDocumentImpl owner, String name ) { 84 super( owner, "HR" ); 85 } 86 87 88 } 89 | Popular Tags |