KickJava   Java API By Example, From Geeks To Geeks.

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


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: XHTMLFrameElementImpl.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 XHTMLFrameElementImpl
32     extends XHTMLElementImpl
33     implements org.enhydra.xml.xhtml.dom.XHTMLFrameElement
34 {
35
36     public XHTMLFrameElementImpl (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 setFrameBorder (String JavaDoc newValue) {
83     setAttribute("frameborder", newValue);
84     }
85
86     public String JavaDoc getFrameBorder () {
87     return getAttribute ("frameborder");
88     }
89     public void setLongDesc (String JavaDoc newValue) {
90     setAttribute("longdesc", newValue);
91     }
92
93     public String JavaDoc getLongDesc () {
94     return getAttribute ("longdesc");
95     }
96     public void setMarginHeight (String JavaDoc newValue) {
97     setAttribute("marginheight", newValue);
98     }
99
100     public String JavaDoc getMarginHeight () {
101     return getAttribute ("marginheight");
102     }
103     public void setMarginWidth (String JavaDoc newValue) {
104     setAttribute("marginwidth", newValue);
105     }
106
107     public String JavaDoc getMarginWidth () {
108     return getAttribute ("marginwidth");
109     }
110     public void setNoResize (boolean newValue) {
111     setAttribute("noresize", newValue);
112     }
113
114     public boolean getNoResize () {
115     return getBooleanAttribute("noresize");
116     }
117     public void setScrolling (String JavaDoc newValue) {
118     setAttribute("scrolling", newValue);
119     }
120
121     public String JavaDoc getScrolling () {
122     return getAttribute ("scrolling");
123     }
124     public void setSrc (String JavaDoc newValue) {
125     setAttribute("src", newValue);
126     }
127
128     public String JavaDoc getSrc () {
129     return getAttribute ("src");
130     }
131     public void setStyle (String JavaDoc newValue) {
132     setAttribute("style", newValue);
133     }
134
135     public String JavaDoc getStyle () {
136     return getAttribute ("style");
137     }
138
139     /** @see HTMLIFrameElement#getContentDocument() */
140     public Document JavaDoc getContentDocument() {
141     return DOMOps.getContentDocument(this);
142     }
143
144 }
145
146
147
Popular Tags