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