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. * Create a frame. See the FRAME element definition in HTML 4.0.
  16. * <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>.
  17. */
  18. public interface HTMLFrameElement extends HTMLElement {
  19. /**
  20. * Request frame borders. See the frameborder attribute definition in
  21. * HTML 4.0.
  22. */
  23. public String getFrameBorder();
  24. public void setFrameBorder(String frameBorder);
  25. /**
  26. * URI designating a long description of this image or frame. See the
  27. * longdesc attribute definition in HTML 4.0.
  28. */
  29. public String getLongDesc();
  30. public void setLongDesc(String longDesc);
  31. /**
  32. * Frame margin height, in pixels. See the marginheight attribute
  33. * definition in HTML 4.0.
  34. */
  35. public String getMarginHeight();
  36. public void setMarginHeight(String marginHeight);
  37. /**
  38. * Frame margin width, in pixels. See the marginwidth attribute
  39. * definition in HTML 4.0.
  40. */
  41. public String getMarginWidth();
  42. public void setMarginWidth(String marginWidth);
  43. /**
  44. * The frame name (object of the <code>target</code> attribute). See the
  45. * name attribute definition in HTML 4.0.
  46. */
  47. public String getName();
  48. public void setName(String name);
  49. /**
  50. * When true, forbid user from resizing frame. See the noresize
  51. * attribute definition in HTML 4.0.
  52. */
  53. public boolean getNoResize();
  54. public void setNoResize(boolean noResize);
  55. /**
  56. * Specify whether or not the frame should have scrollbars. See the
  57. * scrolling attribute definition in HTML 4.0.
  58. */
  59. public String getScrolling();
  60. public void setScrolling(String scrolling);
  61. /**
  62. * A URI designating the initial frame contents. See the src attribute
  63. * definition in HTML 4.0.
  64. */
  65. public String getSrc();
  66. public void setSrc(String src);
  67. /**
  68. * The document this frame contains, if there is any and it is available,
  69. * or <code>null</code> otherwise.
  70. * @since DOM Level 2
  71. */
  72. public Document getContentDocument();
  73. }