1 20 21 package org.ozoneDB.xml.dom.html; 22 23 import org.ozoneDB.xml.dom.ElementImpl; 24 import org.w3c.dom.html.HTMLAnchorElement; 25 26 27 33 public final class HTMLAnchorElementImpl extends HTMLElementImpl implements HTMLAnchorElement { 34 35 36 public String getAccessKey() { 37 String accessKey; 38 39 accessKey = getAttribute( "accesskey" ); 41 if (accessKey != null && accessKey.length() > 1) { 42 accessKey = accessKey.substring( 0, 1 ); 43 } 44 return accessKey; 45 } 46 47 48 public void setAccessKey( String accessKey ) { 49 if (accessKey != null && accessKey.length() > 1) { 51 accessKey = accessKey.substring( 0, 1 ); 52 } 53 setAttribute( "accesskey", accessKey ); 54 } 55 56 57 public String getCharset() { 58 return getAttribute( "charset" ); 59 } 60 61 62 public void setCharset( String charset ) { 63 setAttribute( "charset", charset ); 64 } 65 66 67 public String getCoords() { 68 return getAttribute( "coords" ); 69 } 70 71 72 public void setCoords( String coords ) { 73 setAttribute( "coords", coords ); 74 } 75 76 77 public String getHref() { 78 return getAttribute( "href" ); 79 } 80 81 82 public void setHref( String href ) { 83 setAttribute( "href", href ); 84 } 85 86 87 public String getHreflang() { 88 return getAttribute( "hreflang" ); 89 } 90 91 92 public void setHreflang( String hreflang ) { 93 setAttribute( "hreflang", hreflang ); 94 } 95 96 97 public String getName() { 98 return getAttribute( "name" ); 99 } 100 101 102 public void setName( String name ) { 103 setAttribute( "name", name ); 104 } 105 106 107 public String getRel() { 108 return getAttribute( "rel" ); 109 } 110 111 112 public void setRel( String rel ) { 113 setAttribute( "rel", rel ); 114 } 115 116 117 public String getRev() { 118 return getAttribute( "rev" ); 119 } 120 121 122 public void setRev( String rev ) { 123 setAttribute( "rev", rev ); 124 } 125 126 127 public String getShape() { 128 return capitalize( getAttribute( "shape" ) ); 129 } 130 131 132 public void setShape( String shape ) { 133 setAttribute( "shape", shape ); 134 } 135 136 137 public int getTabIndex() { 138 return this.toInteger( getAttribute( "tabindex" ) ); 139 } 140 141 142 public void setTabIndex( int tabIndex ) { 143 setAttribute( "tabindex", String.valueOf( tabIndex ) ); 144 } 145 146 147 public String getTarget() { 148 return getAttribute( "target" ); 149 } 150 151 152 public void setTarget( String target ) { 153 setAttribute( "target", target ); 154 } 155 156 157 public String getType() { 158 return getAttribute( "type" ); 159 } 160 161 162 public void setType( String type ) { 163 setAttribute( "type", type ); 164 } 165 166 167 public void blur() { 168 } 170 171 172 public void focus() { 173 } 175 176 177 182 public HTMLAnchorElementImpl( HTMLDocumentImpl owner, String name ) { 183 super( owner, "A" ); 184 } 185 186 } 187 | Popular Tags |