1 57 package com.sun.org.apache.html.internal.dom; 58 59 60 import org.w3c.dom.html.HTMLAnchorElement; 61 62 63 69 public class HTMLAnchorElementImpl 70 extends HTMLElementImpl 71 implements HTMLAnchorElement 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 getCharset() 97 { 98 return getAttribute( "charset" ); 99 } 100 101 102 public void setCharset( String charset ) 103 { 104 setAttribute( "charset", charset ); 105 } 106 107 108 public String getCoords() 109 { 110 return getAttribute( "coords" ); 111 } 112 113 114 public void setCoords( String coords ) 115 { 116 setAttribute( "coords", coords ); 117 } 118 119 120 public String getHref() 121 { 122 return getAttribute( "href" ); 123 } 124 125 126 public void setHref( String href ) 127 { 128 setAttribute( "href", href ); 129 } 130 131 132 public String getHreflang() 133 { 134 return getAttribute( "hreflang" ); 135 } 136 137 138 public void setHreflang( String hreflang ) 139 { 140 setAttribute( "hreflang", hreflang ); 141 } 142 143 144 public String getName() 145 { 146 return getAttribute( "name" ); 147 } 148 149 150 public void setName( String name ) 151 { 152 setAttribute( "name", name ); 153 } 154 155 156 public String getRel() 157 { 158 return getAttribute( "rel" ); 159 } 160 161 162 public void setRel( String rel ) 163 { 164 setAttribute( "rel", rel ); 165 } 166 167 168 public String getRev() 169 { 170 return getAttribute( "rev" ); 171 } 172 173 174 public void setRev( String rev ) 175 { 176 setAttribute( "rev", rev ); 177 } 178 179 180 public String getShape() 181 { 182 return capitalize( getAttribute( "shape" ) ); 183 } 184 185 186 public void setShape( String shape ) 187 { 188 setAttribute( "shape", shape ); 189 } 190 191 192 public int getTabIndex() 193 { 194 return this.getInteger( getAttribute( "tabindex" ) ); 195 } 196 197 198 public void setTabIndex( int tabIndex ) 199 { 200 setAttribute( "tabindex", String.valueOf( tabIndex ) ); 201 } 202 203 204 public String getTarget() 205 { 206 return getAttribute( "target" ); 207 } 208 209 210 public void setTarget( String target ) 211 { 212 setAttribute( "target", target ); 213 } 214 215 216 public String getType() 217 { 218 return getAttribute( "type" ); 219 } 220 221 222 public void setType( String type ) 223 { 224 setAttribute( "type", type ); 225 } 226 227 228 public void blur() 229 { 230 } 232 233 public void focus() 234 { 235 } 237 238 239 244 public HTMLAnchorElementImpl( HTMLDocumentImpl owner, String name ) 245 { 246 super( owner, name ); 247 } 248 249 250 } 251 252 | Popular Tags |