1 20 21 package org.ozoneDB.xml.dom.html; 22 23 import org.ozoneDB.xml.dom.ElementImpl; 24 import org.w3c.dom.html.HTMLAreaElement; 25 26 27 33 public final class HTMLAreaElementImpl extends HTMLElementImpl implements HTMLAreaElement { 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 getAlt() { 58 return getAttribute( "alt" ); 59 } 60 61 62 public void setAlt( String alt ) { 63 setAttribute( "alt", alt ); 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 boolean getNoHref() { 88 return getAttribute( "href" ) != null; 89 } 90 91 92 public void setNoHref( boolean noHref ) { 93 setAttribute( "nohref", noHref ? "" : null ); 94 } 95 96 97 public String getShape() { 98 return capitalize( getAttribute( "shape" ) ); 99 } 100 101 102 public void setShape( String shape ) { 103 setAttribute( "shape", shape ); 104 } 105 106 107 public int getTabIndex() { 108 return toInteger( getAttribute( "tabindex" ) ); 109 } 110 111 112 public void setTabIndex( int tabIndex ) { 113 setAttribute( "tabindex", String.valueOf( tabIndex ) ); 114 } 115 116 117 public String getTarget() { 118 return getAttribute( "target" ); 119 } 120 121 122 public void setTarget( String target ) { 123 setAttribute( "target", target ); 124 } 125 126 127 132 public HTMLAreaElementImpl( HTMLDocumentImpl owner, String name ) { 133 super( owner, "AREA" ); 134 } 135 136 } 137 | Popular Tags |