1 57 package org.enhydra.apache.html.dom; 58 59 60 import org.enhydra.apache.xerces.dom.ElementImpl; 61 import org.w3c.dom.html.HTMLPreElement; 62 63 64 70 public class HTMLPreElementImpl 71 extends HTMLElementImpl 72 implements HTMLPreElement 73 { 74 75 76 public int getWidth() 77 { 78 return getInteger( getAttribute( "width" ) ); 79 } 80 81 82 public void setWidth( int width ) 83 { 84 setAttribute( "width", String.valueOf( width ) ); 85 } 86 87 88 93 public HTMLPreElementImpl( HTMLDocumentImpl owner, String name ) 94 { 95 super( owner, name ); 96 } 97 98 99 } 100 101 | Popular Tags |