KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > wml > dom > WMLImgElementImpl


1 /*
2  * Copyright 1999,2000,2004,2005 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 package org.apache.wml.dom;
17
18 import org.apache.wml.*;
19
20 /**
21  * @xerces.internal
22  * @version $Id: WMLImgElementImpl.java,v 1.4 2005/04/17 23:41:12 mrglavas Exp $
23  * @author <a HREF="mailto:david@topware.com.tw">David Li</a>
24  */

25 public class WMLImgElementImpl extends WMLElementImpl implements WMLImgElement {
26
27     private static final long serialVersionUID = 3257562888998040112L;
28
29     public WMLImgElementImpl (WMLDocumentImpl owner, String JavaDoc tagName) {
30         super( owner, tagName);
31     }
32     
33     public void setWidth(String JavaDoc newValue) {
34         setAttribute("width", newValue);
35     }
36     
37     public String JavaDoc getWidth() {
38         return getAttribute("width");
39     }
40     
41     public void setClassName(String JavaDoc newValue) {
42         setAttribute("class", newValue);
43     }
44     
45     public String JavaDoc getClassName() {
46         return getAttribute("class");
47     }
48     
49     public void setXmlLang(String JavaDoc newValue) {
50         setAttribute("xml:lang", newValue);
51     }
52     
53     public String JavaDoc getXmlLang() {
54         return getAttribute("xml:lang");
55     }
56     
57     public void setLocalSrc(String JavaDoc newValue) {
58         setAttribute("localsrc", newValue);
59     }
60     
61     public String JavaDoc getLocalSrc() {
62         return getAttribute("localsrc");
63     }
64     
65     public void setHeight(String JavaDoc newValue) {
66         setAttribute("height", newValue);
67     }
68     
69     public String JavaDoc getHeight() {
70         return getAttribute("height");
71     }
72     
73     public void setAlign(String JavaDoc newValue) {
74         setAttribute("align", newValue);
75     }
76     
77     public String JavaDoc getAlign() {
78         return getAttribute("align");
79     }
80     
81     public void setVspace(String JavaDoc newValue) {
82         setAttribute("vspace", newValue);
83     }
84     
85     public String JavaDoc getVspace() {
86         return getAttribute("vspace");
87     }
88     
89     public void setAlt(String JavaDoc newValue) {
90         setAttribute("alt", newValue);
91     }
92     
93     public String JavaDoc getAlt() {
94         return getAttribute("alt");
95     }
96     
97     public void setId(String JavaDoc newValue) {
98         setAttribute("id", newValue);
99     }
100     
101     public String JavaDoc getId() {
102         return getAttribute("id");
103     }
104     
105     public void setHspace(String JavaDoc newValue) {
106         setAttribute("hspace", newValue);
107     }
108     
109     public String JavaDoc getHspace() {
110         return getAttribute("hspace");
111     }
112     
113     public void setSrc(String JavaDoc newValue) {
114         setAttribute("src", newValue);
115     }
116     
117     public String JavaDoc getSrc() {
118         return getAttribute("src");
119     }
120     
121 }
122
Popular Tags