001 /*
002 * Copyright (c) 2003 World Wide Web Consortium,
003 * (Massachusetts Institute of Technology, Institut National de
004 * Recherche en Informatique et en Automatique, Keio University). All
005 * Rights Reserved. This program is distributed under the W3C's Software
006 * Intellectual Property License. This program is distributed in the
007 * hope that it will be useful, but WITHOUT ANY WARRANTY; without even
008 * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
009 * PURPOSE.
010 * See W3C License http://www.w3.org/Consortium/Legal/ for more details.
011 */
012
013 package org.w3c.dom.html2;
014
015 import org.w3c.dom.Document;
016
017 /**
018 * Create a frame. See the FRAME element definition in HTML 4.01.
019 * <p>See also the <a href='http://www.w3.org/TR/2003/REC-DOM-Level-2-HTML-20030109'>Document Object Model (DOM) Level 2 HTML Specification</a>.
020 */
021 public interface HTMLFrameElement extends HTMLElement {
022 /**
023 * Request frame borders. See the frameborder attribute definition in HTML
024 * 4.01.
025 */
026 public String getFrameBorder();
027 /**
028 * Request frame borders. See the frameborder attribute definition in HTML
029 * 4.01.
030 */
031 public void setFrameBorder(String frameBorder);
032
033 /**
034 * URI [<a href='http://www.ietf.org/rfc/rfc2396.txt'>IETF RFC 2396</a>] designating a long description of this image or frame. See the
035 * longdesc attribute definition in HTML 4.01.
036 */
037 public String getLongDesc();
038 /**
039 * URI [<a href='http://www.ietf.org/rfc/rfc2396.txt'>IETF RFC 2396</a>] designating a long description of this image or frame. See the
040 * longdesc attribute definition in HTML 4.01.
041 */
042 public void setLongDesc(String longDesc);
043
044 /**
045 * Frame margin height, in pixels. See the marginheight attribute
046 * definition in HTML 4.01.
047 */
048 public String getMarginHeight();
049 /**
050 * Frame margin height, in pixels. See the marginheight attribute
051 * definition in HTML 4.01.
052 */
053 public void setMarginHeight(String marginHeight);
054
055 /**
056 * Frame margin width, in pixels. See the marginwidth attribute definition
057 * in HTML 4.01.
058 */
059 public String getMarginWidth();
060 /**
061 * Frame margin width, in pixels. See the marginwidth attribute definition
062 * in HTML 4.01.
063 */
064 public void setMarginWidth(String marginWidth);
065
066 /**
067 * The frame name (object of the <code>target</code> attribute). See the
068 * name attribute definition in HTML 4.01.
069 */
070 public String getName();
071 /**
072 * The frame name (object of the <code>target</code> attribute). See the
073 * name attribute definition in HTML 4.01.
074 */
075 public void setName(String name);
076
077 /**
078 * When true, forbid user from resizing frame. See the noresize attribute
079 * definition in HTML 4.01.
080 */
081 public boolean getNoResize();
082 /**
083 * When true, forbid user from resizing frame. See the noresize attribute
084 * definition in HTML 4.01.
085 */
086 public void setNoResize(boolean noResize);
087
088 /**
089 * Specify whether or not the frame should have scrollbars. See the
090 * scrolling attribute definition in HTML 4.01.
091 */
092 public String getScrolling();
093 /**
094 * Specify whether or not the frame should have scrollbars. See the
095 * scrolling attribute definition in HTML 4.01.
096 */
097 public void setScrolling(String scrolling);
098
099 /**
100 * A URI [<a href='http://www.ietf.org/rfc/rfc2396.txt'>IETF RFC 2396</a>] designating the initial frame contents. See the src attribute
101 * definition in HTML 4.01.
102 */
103 public String getSrc();
104 /**
105 * A URI [<a href='http://www.ietf.org/rfc/rfc2396.txt'>IETF RFC 2396</a>] designating the initial frame contents. See the src attribute
106 * definition in HTML 4.01.
107 */
108 public void setSrc(String src);
109
110 /**
111 * The document this frame contains, if there is any and it is available,
112 * or <code>null</code> otherwise.
113 * @since DOM Level 2
114 */
115 public Document getContentDocument();
116
117 }