KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > xml > xhtml > dom > xerces > XHTMLMapElementImpl


1 /*
2  * Enhydra Java Application Server Project
3  *
4  * The contents of this file are subject to the Enhydra Public License
5  * Version 1.1 (the "License"); you may not use this file except in
6  * compliance with the License. You may obtain a copy of the License on
7  * the Enhydra web site ( http://www.enhydra.org/ ).
8  *
9  * Software distributed under the License is distributed on an "AS IS"
10  * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
11  * the License for the specific terms governing rights and limitations
12  * under the License.
13  *
14  * The Initial Developer of the Original Code is DigitalSesame
15  * Portions created by DigitalSesame are Copyright (C) 1997-2000 DigitalSesame
16  * All Rights Reserved.
17  *
18  * Contributor(s):
19  * Rex Tsai <chihchun@digitalsesame.com>
20  * David Li <david@digitalsesam.com>
21  *
22  * $Id: XHTMLMapElementImpl.java,v 1.2 2005/01/26 08:29:24 jkjome Exp $
23  */

24
25 package org.enhydra.xml.xhtml.dom.xerces;
26
27 import org.w3c.dom.html.HTMLCollection;
28
29 public class XHTMLMapElementImpl
30     extends XHTMLElementImpl
31     implements org.enhydra.xml.xhtml.dom.XHTMLMapElement
32 {
33
34     public XHTMLMapElementImpl (XHTMLDocumentBase owner, String JavaDoc namespaceURI, String JavaDoc tagName) {
35     super( owner, namespaceURI, tagName);
36     }
37
38         public void setId (String JavaDoc newValue) {
39     setAttribute("id", newValue);
40     }
41
42     public String JavaDoc getId () {
43     return getAttribute ("id");
44     }
45     public void setLang (String JavaDoc newValue) {
46     setAttribute("lang", newValue);
47     }
48
49     public String JavaDoc getLang () {
50     return getAttribute ("lang");
51     }
52     public void setDir (String JavaDoc newValue) {
53     setAttribute("dir", newValue);
54     }
55
56     public String JavaDoc getDir () {
57     return getAttribute ("dir");
58     }
59     public void setClassName (String JavaDoc newValue) {
60     setAttribute("class", newValue);
61     }
62
63     public String JavaDoc getClassName () {
64     return getAttribute ("class");
65     }
66     public void setTitle (String JavaDoc newValue) {
67     setAttribute("title", newValue);
68     }
69
70     public String JavaDoc getTitle () {
71     return getAttribute ("title");
72     }
73     public void setName (String JavaDoc newValue) {
74     setAttribute("name", newValue);
75     }
76
77     public String JavaDoc getName () {
78     return getAttribute ("name");
79     }
80     public void setOnKeyUp (String JavaDoc newValue) {
81     setAttribute("onkeyup", newValue);
82     }
83
84     public String JavaDoc getOnKeyUp () {
85     return getAttribute ("onkeyup");
86     }
87     public void setStyle (String JavaDoc newValue) {
88     setAttribute("style", newValue);
89     }
90
91     public String JavaDoc getStyle () {
92     return getAttribute ("style");
93     }
94     public void setOnMouseDown (String JavaDoc newValue) {
95     setAttribute("onmousedown", newValue);
96     }
97
98     public String JavaDoc getOnMouseDown () {
99     return getAttribute ("onmousedown");
100     }
101     public void setOnKeyPress (String JavaDoc newValue) {
102     setAttribute("onkeypress", newValue);
103     }
104
105     public String JavaDoc getOnKeyPress () {
106     return getAttribute ("onkeypress");
107     }
108     public void setOnDblClick (String JavaDoc newValue) {
109     setAttribute("ondblclick", newValue);
110     }
111
112     public String JavaDoc getOnDblClick () {
113     return getAttribute ("ondblclick");
114     }
115     public void setOnKeyDown (String JavaDoc newValue) {
116     setAttribute("onkeydown", newValue);
117     }
118
119     public String JavaDoc getOnKeyDown () {
120     return getAttribute ("onkeydown");
121     }
122     public void setOnMouseMove (String JavaDoc newValue) {
123     setAttribute("onmousemove", newValue);
124     }
125
126     public String JavaDoc getOnMouseMove () {
127     return getAttribute ("onmousemove");
128     }
129     public void setOnMouseUp (String JavaDoc newValue) {
130     setAttribute("onmouseup", newValue);
131     }
132
133     public String JavaDoc getOnMouseUp () {
134     return getAttribute ("onmouseup");
135     }
136     public void setXmlLang (String JavaDoc newValue) {
137     setAttribute("xml:lang", newValue);
138     }
139
140     public String JavaDoc getXmlLang () {
141     return getAttribute ("xml:lang");
142     }
143     public void setOnMouseOut (String JavaDoc newValue) {
144     setAttribute("onmouseout", newValue);
145     }
146
147     public String JavaDoc getOnMouseOut () {
148     return getAttribute ("onmouseout");
149     }
150     public void setOnClick (String JavaDoc newValue) {
151     setAttribute("onclick", newValue);
152     }
153
154     public String JavaDoc getOnClick () {
155     return getAttribute ("onclick");
156     }
157     public void setOnMouseOver (String JavaDoc newValue) {
158     setAttribute("onmouseover", newValue);
159     }
160
161     public String JavaDoc getOnMouseOver () {
162     return getAttribute ("onmouseover");
163     }
164 ;
165
166     
167     public HTMLCollection getAreas() {
168         if ( _areas == null )
169             _areas = new XHTMLCollectionImpl( this, XHTMLCollectionImpl.AREA );
170         return _areas;
171     }
172
173     private HTMLCollection _areas;
174
175 ;
176 }
177
178
179
Popular Tags