KickJava   Java API By Example, From Geeks To Geeks.

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


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: XHTMLIFrameElementImpl.java,v 1.2 2005/01/26 08:28:45 jkjome Exp $
23  */

24
25 package org.enhydra.xml.xhtml.dom.xerces;
26
27 import org.enhydra.xml.dom.DOMOps;
28 import org.w3c.dom.Document JavaDoc;
29 import org.w3c.dom.html.HTMLIFrameElement;
30
31 public class XHTMLIFrameElementImpl
32     extends XHTMLElementImpl
33     implements org.enhydra.xml.xhtml.dom.XHTMLIFrameElement
34 {
35
36     public XHTMLIFrameElementImpl (XHTMLDocumentBase owner, String JavaDoc namespaceURI, String JavaDoc tagName) {
37     super( owner, namespaceURI, tagName);
38     }
39
40         public void setId (String JavaDoc newValue) {
41     setAttribute("id", newValue);
42     }
43
44     public String JavaDoc getId () {
45     return getAttribute ("id");
46     }
47     public void setLang (String JavaDoc newValue) {
48     setAttribute("lang", newValue);
49     }
50
51     public String JavaDoc getLang () {
52     return getAttribute ("lang");
53     }
54     public void setDir (String JavaDoc newValue) {
55     setAttribute("dir", newValue);
56     }
57
58     public String JavaDoc getDir () {
59     return getAttribute ("dir");
60     }
61     public void setClassName (String JavaDoc newValue) {
62     setAttribute("class", newValue);
63     }
64
65     public String JavaDoc getClassName () {
66     return getAttribute ("class");
67     }
68     public void setTitle (String JavaDoc newValue) {
69     setAttribute("title", newValue);
70     }
71
72     public String JavaDoc getTitle () {
73     return getAttribute ("title");
74     }
75     public void setName (String JavaDoc newValue) {
76     setAttribute("name", newValue);
77     }
78
79     public String JavaDoc getName () {
80     return getAttribute ("name");
81     }
82     public void setAlign (String JavaDoc newValue) {
83     setAttribute("align", newValue);
84     }
85
86     public String JavaDoc getAlign () {
87     return getAttribute ("align");
88     }
89     public void setHeight (String JavaDoc newValue) {
90     setAttribute("height", newValue);
91     }
92
93     public String JavaDoc getHeight () {
94     return getAttribute ("height");
95     }
96     public void setWidth (String JavaDoc newValue) {
97     setAttribute("width", newValue);
98     }
99
100     public String JavaDoc getWidth () {
101     return getAttribute ("width");
102     }
103     public void setFrameBorder (String JavaDoc newValue) {
104     setAttribute("frameborder", newValue);
105     }
106
107     public String JavaDoc getFrameBorder () {
108     return getAttribute ("frameborder");
109     }
110     public void setLongDesc (String JavaDoc newValue) {
111     setAttribute("longdesc", newValue);
112     }
113
114     public String JavaDoc getLongDesc () {
115     return getAttribute ("longdesc");
116     }
117     public void setMarginHeight (String JavaDoc newValue) {
118     setAttribute("marginheight", newValue);
119     }
120
121     public String JavaDoc getMarginHeight () {
122     return getAttribute ("marginheight");
123     }
124     public void setMarginWidth (String JavaDoc newValue) {
125     setAttribute("marginwidth", newValue);
126     }
127
128     public String JavaDoc getMarginWidth () {
129     return getAttribute ("marginwidth");
130     }
131     public void setScrolling (String JavaDoc newValue) {
132     setAttribute("scrolling", newValue);
133     }
134
135     public String JavaDoc getScrolling () {
136     return getAttribute ("scrolling");
137     }
138     public void setSrc (String JavaDoc newValue) {
139     setAttribute("src", newValue);
140     }
141
142     public String JavaDoc getSrc () {
143     return getAttribute ("src");
144     }
145     public void setStyle (String JavaDoc newValue) {
146     setAttribute("style", newValue);
147     }
148
149     public String JavaDoc getStyle () {
150     return getAttribute ("style");
151     }
152     
153     /** @see HTMLIFrameElement#getContentDocument() */
154     public Document JavaDoc getContentDocument() {
155     return DOMOps.getContentDocument(this);
156     }
157
158 }
159
160
161
Popular Tags