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. package org.w3c.dom.html;
  13. import org.w3c.dom.Document;
  14. /**
  15. * Generic embedded object. Note. In principle, all properties on the object
  16. * element are read-write but in some environments some properties may be
  17. * read-only once the underlying object is instantiated. See the OBJECT
  18. * element definition in HTML 4.0.
  19. * <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>.
  20. */
  21. public interface HTMLObjectElement extends HTMLElement {
  22. /**
  23. * Returns the <code>FORM</code> element containing this control. Returns
  24. * <code>null</code> if this control is not within the context of a form.
  25. */
  26. public HTMLFormElement getForm();
  27. /**
  28. * Applet class file. See the <code>code</code> attribute for
  29. * HTMLAppletElement.
  30. */
  31. public String getCode();
  32. public void setCode(String code);
  33. /**
  34. * Aligns this object (vertically or horizontally) with respect to its
  35. * surrounding text. See the align attribute definition in HTML 4.0.
  36. * This attribute is deprecated in HTML 4.0.
  37. */
  38. public String getAlign();
  39. public void setAlign(String align);
  40. /**
  41. * Space-separated list of archives. See the archive attribute definition
  42. * in HTML 4.0.
  43. */
  44. public String getArchive();
  45. public void setArchive(String archive);
  46. /**
  47. * Width of border around the object. See the border attribute definition
  48. * in HTML 4.0. This attribute is deprecated in HTML 4.0.
  49. */
  50. public String getBorder();
  51. public void setBorder(String border);
  52. /**
  53. * Base URI for <code>classid</code> , <code>data</code> , and
  54. * <code>archive</code> attributes. See the codebase attribute definition
  55. * in HTML 4.0.
  56. */
  57. public String getCodeBase();
  58. public void setCodeBase(String codeBase);
  59. /**
  60. * Content type for data downloaded via <code>classid</code> attribute.
  61. * See the codetype attribute definition in HTML 4.0.
  62. */
  63. public String getCodeType();
  64. public void setCodeType(String codeType);
  65. /**
  66. * A URI specifying the location of the object's data. See the data
  67. * attribute definition in HTML 4.0.
  68. */
  69. public String getData();
  70. public void setData(String data);
  71. /**
  72. * Declare (for future reference), but do not instantiate, this object.
  73. * See the declare attribute definition in HTML 4.0.
  74. */
  75. public boolean getDeclare();
  76. public void setDeclare(boolean declare);
  77. /**
  78. * Override height. See the height attribute definition in HTML 4.0.
  79. */
  80. public String getHeight();
  81. public void setHeight(String height);
  82. /**
  83. * Horizontal space to the left and right of this image, applet, or
  84. * object. See the hspace attribute definition in HTML 4.0. This
  85. * attribute is deprecated in HTML 4.0.
  86. */
  87. public String getHspace();
  88. public void setHspace(String hspace);
  89. /**
  90. * Form control or object name when submitted with a form. See the name
  91. * attribute definition in HTML 4.0.
  92. */
  93. public String getName();
  94. public void setName(String name);
  95. /**
  96. * Message to render while loading the object. See the standby attribute
  97. * definition in HTML 4.0.
  98. */
  99. public String getStandby();
  100. public void setStandby(String standby);
  101. /**
  102. * Index that represents the element's position in the tabbing order. See
  103. * the tabindex attribute definition in HTML 4.0.
  104. */
  105. public int getTabIndex();
  106. public void setTabIndex(int tabIndex);
  107. /**
  108. * Content type for data downloaded via <code>data</code> attribute. See
  109. * the type attribute definition in HTML 4.0.
  110. */
  111. public String getType();
  112. public void setType(String type);
  113. /**
  114. * Use client-side image map. See the usemap attribute definition in
  115. * HTML 4.0.
  116. */
  117. public String getUseMap();
  118. public void setUseMap(String useMap);
  119. /**
  120. * Vertical space above and below this image, applet, or object. See the
  121. * vspace attribute definition in HTML 4.0. This attribute is deprecated
  122. * in HTML 4.0.
  123. */
  124. public String getVspace();
  125. public void setVspace(String vspace);
  126. /**
  127. * Override width. See the width attribute definition in HTML 4.0.
  128. */
  129. public String getWidth();
  130. public void setWidth(String width);
  131. /**
  132. * The document this object contains, if there is any and it is
  133. * available, or <code>null</code> otherwise.
  134. * @since DOM Level 2
  135. */
  136. public Document getContentDocument();
  137. }