1 20 21 22 package org.ozoneDB.xml.dom.html; 23 24 25 import org.ozoneDB.xml.dom.ElementImpl; 26 import org.w3c.dom.html.HTMLImageElement; 27 28 29 35 public final class HTMLImageElementImpl extends HTMLElementImpl implements HTMLImageElement { 36 37 38 public String getLowSrc() { 39 return getAttribute( "lowsrc" ); 40 } 41 42 43 public void setLowSrc( String lowSrc ) { 44 setAttribute( "lowsrc", lowSrc ); 45 } 46 47 48 public String getSrc() { 49 return getAttribute( "src" ); 50 } 51 52 53 public void setSrc( String src ) { 54 setAttribute( "src", src ); 55 } 56 57 58 public String getName() { 59 return getAttribute( "name" ); 60 } 61 62 63 public void setName( String name ) { 64 setAttribute( "name", name ); 65 } 66 67 68 public String getAlign() { 69 return capitalize( getAttribute( "align" ) ); 70 } 71 72 73 public void setAlign( String align ) { 74 setAttribute( "align", align ); 75 } 76 77 78 public String getAlt() { 79 return getAttribute( "alt" ); 80 } 81 82 83 public void setAlt( String alt ) { 84 setAttribute( "alt", alt ); 85 } 86 87 88 public String getBorder() { 89 return getAttribute( "border" ); 90 } 91 92 93 public void setBorder( String border ) { 94 setAttribute( "border", border ); 95 } 96 97 98 public String getHeight() { 99 return getAttribute( "height" ); 100 } 101 102 103 public void setHeight( String height ) { 104 setAttribute( "height", height ); 105 } 106 107 108 public String getHspace() { 109 return getAttribute( "hspace" ); 110 } 111 112 113 public void setHspace( String hspace ) { 114 setAttribute( "hspace", hspace ); 115 } 116 117 118 public boolean getIsMap() { 119 return getAttribute( "ismap" ) != null; 120 } 121 122 123 public void setIsMap( boolean isMap ) { 124 setAttribute( "ismap", isMap ? "" : null ); 125 } 126 127 128 public String getLongDesc() { 129 return getAttribute( "longdesc" ); 130 } 131 132 133 public void setLongDesc( String longDesc ) { 134 setAttribute( "longdesc", longDesc ); 135 } 136 137 138 public String getUseMap() { 139 return getAttribute( "useMap" ); 140 } 141 142 143 public void setUseMap( String useMap ) { 144 setAttribute( "useMap", useMap ); 145 } 146 147 148 public String getVspace() { 149 return getAttribute( "vspace" ); 150 } 151 152 153 public void setVspace( String vspace ) { 154 setAttribute( "vspace", vspace ); 155 } 156 157 158 public String getWidth() { 159 return getAttribute( "width" ); 160 } 161 162 163 public void setWidth( String width ) { 164 setAttribute( "width", width ); 165 } 166 167 168 173 public HTMLImageElementImpl( HTMLDocumentImpl owner, String name ) { 174 super( owner, "IMG" ); 175 } 176 177 178 } 179 | Popular Tags |