KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > w3c > dom > html > HTMLObjectElement


1 /*
2  * Copyright (c) 2000 World Wide Web Consortium,
3  * (Massachusetts Institute of Technology, Institut National de
4  * Recherche en Informatique et en Automatique, Keio University). All
5  * Rights Reserved. This program is distributed under the W3C's Software
6  * Intellectual Property License. This program is distributed in the
7  * hope that it will be useful, but WITHOUT ANY WARRANTY; without even
8  * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
9  * PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
10  * details.
11  */

12
13 package org.w3c.dom.html;
14
15 import org.w3c.dom.Document JavaDoc;
16
17 /**
18  * Generic embedded object. Note. In principle, all properties on the object
19  * element are read-write but in some environments some properties may be
20  * read-only once the underlying object is instantiated. See the OBJECT
21  * element definition in HTML 4.0.
22  * <p>See also the <a HREF='http://www.w3.org/TR/2000/CR-DOM-Level-2-20000510'>Document Object Model (DOM) Level 2 Specification</a>.
23  */

24 public interface HTMLObjectElement extends HTMLElement {
25     /**
26      * Returns the <code>FORM</code> element containing this control. Returns
27      * <code>null</code> if this control is not within the context of a form.
28      */

29     public HTMLFormElement getForm();
30
31     /**
32      * Applet class file. See the <code>code</code> attribute for
33      * HTMLAppletElement.
34      */

35     public String JavaDoc getCode();
36     public void setCode(String JavaDoc code);
37
38     /**
39      * Aligns this object (vertically or horizontally) with respect to its
40      * surrounding text. See the align attribute definition in HTML 4.0.
41      * This attribute is deprecated in HTML 4.0.
42      */

43     public String JavaDoc getAlign();
44     public void setAlign(String JavaDoc align);
45
46     /**
47      * Space-separated list of archives. See the archive attribute definition
48      * in HTML 4.0.
49      */

50     public String JavaDoc getArchive();
51     public void setArchive(String JavaDoc archive);
52
53     /**
54      * Width of border around the object. See the border attribute definition
55      * in HTML 4.0. This attribute is deprecated in HTML 4.0.
56      */

57     public String JavaDoc getBorder();
58     public void setBorder(String JavaDoc border);
59
60     /**
61      * Base URI for <code>classid</code> , <code>data</code> , and
62      * <code>archive</code> attributes. See the codebase attribute definition
63      * in HTML 4.0.
64      */

65     public String JavaDoc getCodeBase();
66     public void setCodeBase(String JavaDoc codeBase);
67
68     /**
69      * Content type for data downloaded via <code>classid</code> attribute.
70      * See the codetype attribute definition in HTML 4.0.
71      */

72     public String JavaDoc getCodeType();
73     public void setCodeType(String JavaDoc codeType);
74
75     /**
76      * A URI specifying the location of the object's data. See the data
77      * attribute definition in HTML 4.0.
78      */

79     public String JavaDoc getData();
80     public void setData(String JavaDoc data);
81
82     /**
83      * Declare (for future reference), but do not instantiate, this object.
84      * See the declare attribute definition in HTML 4.0.
85      */

86     public boolean getDeclare();
87     public void setDeclare(boolean declare);
88
89     /**
90      * Override height. See the height attribute definition in HTML 4.0.
91      */

92     public String JavaDoc getHeight();
93     public void setHeight(String JavaDoc height);
94
95     /**
96      * Horizontal space to the left and right of this image, applet, or
97      * object. See the hspace attribute definition in HTML 4.0. This
98      * attribute is deprecated in HTML 4.0.
99      */

100     public String JavaDoc getHspace();
101     public void setHspace(String JavaDoc hspace);
102
103     /**
104      * Form control or object name when submitted with a form. See the name
105      * attribute definition in HTML 4.0.
106      */

107     public String JavaDoc getName();
108     public void setName(String JavaDoc name);
109
110     /**
111      * Message to render while loading the object. See the standby attribute
112      * definition in HTML 4.0.
113      */

114     public String JavaDoc getStandby();
115     public void setStandby(String JavaDoc standby);
116
117     /**
118      * Index that represents the element's position in the tabbing order. See
119      * the tabindex attribute definition in HTML 4.0.
120      */

121     public int getTabIndex();
122     public void setTabIndex(int tabIndex);
123
124     /**
125      * Content type for data downloaded via <code>data</code> attribute. See
126      * the type attribute definition in HTML 4.0.
127      */

128     public String JavaDoc getType();
129     public void setType(String JavaDoc type);
130
131     /**
132      * Use client-side image map. See the usemap attribute definition in
133      * HTML 4.0.
134      */

135     public String JavaDoc getUseMap();
136     public void setUseMap(String JavaDoc useMap);
137
138     /**
139      * Vertical space above and below this image, applet, or object. See the
140      * vspace attribute definition in HTML 4.0. This attribute is deprecated
141      * in HTML 4.0.
142      */

143     public String JavaDoc getVspace();
144     public void setVspace(String JavaDoc vspace);
145
146     /**
147      * Override width. See the width attribute definition in HTML 4.0.
148      */

149     public String JavaDoc getWidth();
150     public void setWidth(String JavaDoc width);
151
152     /**
153      * The document this object contains, if there is any and it is
154      * available, or <code>null</code> otherwise.
155      * @since DOM Level 2
156      */

157     public Document JavaDoc getContentDocument();
158
159 }
160
161
Popular Tags