1 57 package org.enhydra.apache.html.dom; 58 59 60 import org.enhydra.apache.xerces.dom.ElementImpl; 61 import org.w3c.dom.html.HTMLFontElement; 62 63 64 70 public class HTMLFontElementImpl 71 extends HTMLElementImpl 72 implements HTMLFontElement 73 { 74 75 76 public String getColor() 77 { 78 return capitalize( getAttribute( "color" ) ); 79 } 80 81 82 public void setColor( String color ) 83 { 84 setAttribute( "color", color ); 85 } 86 87 88 public String getFace() 89 { 90 return capitalize( getAttribute( "face" ) ); 91 } 92 93 94 public void setFace( String face ) 95 { 96 setAttribute( "face", face ); 97 } 98 99 100 public String getSize() 101 { 102 return getAttribute( "size" ); 103 } 104 105 106 public void setSize( String size ) 107 { 108 setAttribute( "size", size ); 109 } 110 111 112 public HTMLFontElementImpl( HTMLDocumentImpl owner, String name ) 113 { 114 super( owner, name ); 115 } 116 117 118 } 119 | Popular Tags |