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.HTMLAreaElement; 61 62 63 69 public class HTMLAreaElementImpl 70 extends LazyHTMLElement 71 implements HTMLAreaElement 72 { 73 74 75 public String getAccessKey() 76 { 77 String accessKey; 78 79 accessKey = getAttribute( "accesskey" ); 81 if ( accessKey != null && accessKey.length() > 1 ) 82 accessKey = accessKey.substring( 0, 1 ); 83 return accessKey; 84 } 85 86 87 public void setAccessKey( String accessKey ) 88 { 89 if ( accessKey != null && accessKey.length() > 1 ) 91 accessKey = accessKey.substring( 0, 1 ); 92 setAttribute( "accesskey", accessKey ); 93 } 94 95 96 public String getAlt() 97 { 98 return getAttribute( "alt" ); 99 } 100 101 102 public void setAlt( String alt ) 103 { 104 setAttribute( "alt", alt ); 105 } 106 107 public String getCoords() 108 { 109 return getAttribute( "coords" ); 110 } 111 112 113 public void setCoords( String coords ) 114 { 115 setAttribute( "coords", coords ); 116 } 117 118 119 public String getHref() 120 { 121 return getAttribute( "href" ); 122 } 123 124 125 public void setHref( String href ) 126 { 127 setAttribute( "href", href ); 128 } 129 130 131 public boolean getNoHref() 132 { 133 return getBinary( "href" ); 134 } 135 136 137 public void setNoHref( boolean noHref ) 138 { 139 setAttribute( "nohref", noHref ); 140 } 141 142 143 public String getShape() 144 { 145 return capitalize( getAttribute( "shape" ) ); 146 } 147 148 149 public void setShape( String shape ) 150 { 151 setAttribute( "shape", shape ); 152 } 153 154 155 public int getTabIndex() 156 { 157 return getInteger( getAttribute( "tabindex" ) ); 158 } 159 160 161 public void setTabIndex( int tabIndex ) 162 { 163 setAttribute( "tabindex", String.valueOf( tabIndex ) ); 164 } 165 166 167 public String getTarget() 168 { 169 return getAttribute( "target" ); 170 } 171 172 173 public void setTarget( String target ) 174 { 175 setAttribute( "target", target ); 176 } 177 178 179 184 public HTMLAreaElementImpl( LazyHTMLDocument owner, LazyElement template, String name ) 185 { 186 super( owner, template, name ); 187 } 188 189 } 190 191 | Popular Tags |