1 57 package org.enhydra.apache.html.dom; 58 59 60 import org.enhydra.apache.xerces.dom.ElementImpl; 61 import org.w3c.dom.html.HTMLAreaElement; 62 63 64 70 public class HTMLAreaElementImpl 71 extends HTMLElementImpl 72 implements HTMLAreaElement 73 { 74 75 76 public String getAccessKey() 77 { 78 String accessKey; 79 80 accessKey = getAttribute( "accesskey" ); 82 if ( accessKey != null && accessKey.length() > 1 ) 83 accessKey = accessKey.substring( 0, 1 ); 84 return accessKey; 85 } 86 87 88 public void setAccessKey( String accessKey ) 89 { 90 if ( accessKey != null && accessKey.length() > 1 ) 92 accessKey = accessKey.substring( 0, 1 ); 93 setAttribute( "accesskey", accessKey ); 94 } 95 96 97 public String getAlt() 98 { 99 return getAttribute( "alt" ); 100 } 101 102 103 public void setAlt( String alt ) 104 { 105 setAttribute( "alt", alt ); 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 boolean getNoHref() 133 { 134 return getBinary( "href" ); 135 } 136 137 138 public void setNoHref( boolean noHref ) 139 { 140 setAttribute( "nohref", noHref ); 141 } 142 143 144 public String getShape() 145 { 146 return capitalize( getAttribute( "shape" ) ); 147 } 148 149 150 public void setShape( String shape ) 151 { 152 setAttribute( "shape", shape ); 153 } 154 155 156 public int getTabIndex() 157 { 158 return getInteger( getAttribute( "tabindex" ) ); 159 } 160 161 162 public void setTabIndex( int tabIndex ) 163 { 164 setAttribute( "tabindex", String.valueOf( tabIndex ) ); 165 } 166 167 168 public String getTarget() 169 { 170 return getAttribute( "target" ); 171 } 172 173 174 public void setTarget( String target ) 175 { 176 setAttribute( "target", target ); 177 } 178 179 180 185 public HTMLAreaElementImpl( HTMLDocumentImpl owner, String name ) 186 { 187 super( owner, name ); 188 } 189 190 } 191 192 | Popular Tags |