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