001: /*
002: * Licensed to the Apache Software Foundation (ASF) under one or more
003: * contributor license agreements. See the NOTICE file distributed with
004: * this work for additional information regarding copyright ownership.
005: * The ASF licenses this file to You under the Apache License, Version 2.0
006: * (the "License"); you may not use this file except in compliance with
007: * the License. You may obtain a copy of the License at
008: *
009: * http://www.apache.org/licenses/LICENSE-2.0
010: *
011: * Unless required by applicable law or agreed to in writing, software
012: * distributed under the License is distributed on an "AS IS" BASIS,
013: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014: * See the License for the specific language governing permissions and
015: * limitations under the License.
016: */
017: package org.apache.html.dom;
018:
019: import org.w3c.dom.html.HTMLImageElement;
020:
021: /**
022: * @xerces.internal
023: * @version $Revision: 447255 $ $Date: 2006-09-18 01:36:42 -0400 (Mon, 18 Sep 2006) $
024: * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
025: * @see org.w3c.dom.html.HTMLImageElement
026: * @see org.apache.xerces.dom.ElementImpl
027: */
028: public class HTMLImageElementImpl extends HTMLElementImpl implements
029: HTMLImageElement {
030:
031: private static final long serialVersionUID = 1424360710977241315L;
032:
033: public String getLowSrc() {
034: return getAttribute("lowsrc");
035: }
036:
037: public void setLowSrc(String lowSrc) {
038: setAttribute("lowsrc", lowSrc);
039: }
040:
041: public String getSrc() {
042: return getAttribute("src");
043: }
044:
045: public void setSrc(String src) {
046: setAttribute("src", src);
047: }
048:
049: public String getName() {
050: return getAttribute("name");
051: }
052:
053: public void setName(String name) {
054: setAttribute("name", name);
055: }
056:
057: public String getAlign() {
058: return capitalize(getAttribute("align"));
059: }
060:
061: public void setAlign(String align) {
062: setAttribute("align", align);
063: }
064:
065: public String getAlt() {
066: return getAttribute("alt");
067: }
068:
069: public void setAlt(String alt) {
070: setAttribute("alt", alt);
071: }
072:
073: public String getBorder() {
074: return getAttribute("border");
075: }
076:
077: public void setBorder(String border) {
078: setAttribute("border", border);
079: }
080:
081: public String getHeight() {
082: return getAttribute("height");
083: }
084:
085: public void setHeight(String height) {
086: setAttribute("height", height);
087: }
088:
089: public String getHspace() {
090: return getAttribute("hspace");
091: }
092:
093: public void setHspace(String hspace) {
094: setAttribute("hspace", hspace);
095: }
096:
097: public boolean getIsMap() {
098: return getBinary("ismap");
099: }
100:
101: public void setIsMap(boolean isMap) {
102: setAttribute("ismap", isMap);
103: }
104:
105: public String getLongDesc() {
106: return getAttribute("longdesc");
107: }
108:
109: public void setLongDesc(String longDesc) {
110: setAttribute("longdesc", longDesc);
111: }
112:
113: public String getUseMap() {
114: return getAttribute("useMap");
115: }
116:
117: public void setUseMap(String useMap) {
118: setAttribute("useMap", useMap);
119: }
120:
121: public String getVspace() {
122: return getAttribute("vspace");
123: }
124:
125: public void setVspace(String vspace) {
126: setAttribute("vspace", vspace);
127: }
128:
129: public String getWidth() {
130: return getAttribute("width");
131: }
132:
133: public void setWidth(String width) {
134: setAttribute("width", width);
135: }
136:
137: /**
138: * Constructor requires owner document.
139: *
140: * @param owner The owner HTML document
141: */
142: public HTMLImageElementImpl(HTMLDocumentImpl owner, String name) {
143: super(owner, name);
144: }
145:
146: }
|