KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > html > dom > HTMLObjectElementImpl


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.html.dom;
17
18 import org.w3c.dom.html.HTMLObjectElement;
19
20 /**
21  * @xerces.internal
22  * @version $Revision: 1.11 $ $Date: 2005/04/18 01:09:10 $
23  * @author <a HREF="mailto:arkin@exoffice.com">Assaf Arkin</a>
24  * @see org.w3c.dom.html.HTMLObjectElement
25  * @see org.apache.xerces.dom.ElementImpl
26  */

27 public class HTMLObjectElementImpl
28     extends HTMLElementImpl
29     implements HTMLObjectElement, HTMLFormControl
30 {
31     
32     private static final long serialVersionUID = 3617014156759479090L;
33
34     public String JavaDoc getCode()
35     {
36         return getAttribute( "code" );
37     }
38     
39     
40     public void setCode( String JavaDoc code )
41     {
42         setAttribute( "code", code );
43     }
44
45   
46     public String JavaDoc getAlign()
47     {
48         return capitalize( getAttribute( "align" ) );
49     }
50     
51     
52     public void setAlign( String JavaDoc align )
53     {
54         setAttribute( "align", align );
55     }
56   
57     
58     public String JavaDoc getArchive()
59     {
60         return getAttribute( "archive" );
61     }
62     
63     
64     public void setArchive( String JavaDoc archive )
65     {
66         setAttribute( "archive", archive );
67     }
68     
69     public String JavaDoc getBorder()
70     {
71         return getAttribute( "border" );
72     }
73     
74     
75     public void setBorder( String JavaDoc border )
76     {
77         setAttribute( "border", border );
78     }
79
80     
81     public String JavaDoc getCodeBase()
82     {
83         return getAttribute( "codebase" );
84     }
85     
86     
87     public void setCodeBase( String JavaDoc codeBase )
88     {
89         setAttribute( "codebase", codeBase );
90     }
91
92     
93     public String JavaDoc getCodeType()
94     {
95         return getAttribute( "codetype" );
96     }
97     
98     
99     public void setCodeType( String JavaDoc codeType )
100     {
101         setAttribute( "codetype", codeType );
102     }
103
104     
105     public String JavaDoc getData()
106     {
107         return getAttribute( "data" );
108     }
109     
110     
111     public void setData( String JavaDoc data )
112     {
113         setAttribute( "data", data );
114     }
115
116   
117       public boolean getDeclare()
118     {
119         return getBinary( "declare" );
120     }
121     
122     
123     public void setDeclare( boolean declare )
124     {
125         setAttribute( "declare", declare );
126     }
127
128     
129     public String JavaDoc getHeight()
130     {
131         return getAttribute( "height" );
132     }
133     
134     
135     public void setHeight( String JavaDoc height )
136     {
137         setAttribute( "height", height );
138     }
139
140     
141     public String JavaDoc getHspace()
142     {
143         return getAttribute( "hspace" );
144     }
145     
146     
147     public void setHspace( String JavaDoc hspace )
148     {
149         setAttribute( "hspace", hspace );
150     }
151   
152     public String JavaDoc getName()
153     {
154         return getAttribute( "name" );
155     }
156     
157     
158     public void setName( String JavaDoc name )
159     {
160         setAttribute( "name", name );
161     }
162
163     
164     public String JavaDoc getStandby()
165     {
166         return getAttribute( "standby" );
167     }
168     
169     
170     public void setStandby( String JavaDoc standby )
171     {
172         setAttribute( "standby", standby );
173     }
174   
175       public int getTabIndex()
176     {
177         try
178         {
179             return Integer.parseInt( getAttribute( "tabindex" ) );
180         }
181         catch ( NumberFormatException JavaDoc except )
182         {
183             return 0;
184         }
185     }
186     
187     
188     public void setTabIndex( int tabIndex )
189     {
190         setAttribute( "tabindex", String.valueOf( tabIndex ) );
191     }
192
193     
194     public String JavaDoc getType()
195     {
196         return getAttribute( "type" );
197     }
198     
199     
200     public void setType( String JavaDoc type )
201     {
202         setAttribute( "type", type );
203     }
204     
205     
206     public String JavaDoc getUseMap()
207     {
208         return getAttribute( "useMap" );
209     }
210     
211     
212     public void setUseMap( String JavaDoc useMap )
213     {
214         setAttribute( "useMap", useMap );
215     }
216     
217     
218     public String JavaDoc getVspace()
219     {
220         return getAttribute( "vspace" );
221     }
222     
223     
224     public void setVspace( String JavaDoc vspace )
225     {
226         setAttribute( "vspace", vspace );
227     }
228
229   
230     public String JavaDoc getWidth()
231     {
232         return getAttribute( "width" );
233     }
234     
235     
236     public void setWidth( String JavaDoc width )
237     {
238         setAttribute( "width", width );
239     }
240
241     
242     
243     /**
244      * Constructor requires owner document.
245      *
246      * @param owner The owner HTML document
247      */

248     public HTMLObjectElementImpl( HTMLDocumentImpl owner, String JavaDoc name )
249     {
250         super( owner, name );
251     }
252
253
254 }
255
256
Popular Tags