KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > w3c > dom > html2 > HTMLScriptElement


1 /*
2     GNU LESSER GENERAL PUBLIC LICENSE
3     Copyright (C) 2006 The Lobo Project
4
5     This library is free software; you can redistribute it and/or
6     modify it under the terms of the GNU Lesser General Public
7     License as published by the Free Software Foundation; either
8     version 2.1 of the License, or (at your option) any later version.
9
10     This library is distributed in the hope that it will be useful,
11     but WITHOUT ANY WARRANTY; without even the implied warranty of
12     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13     Lesser General Public License for more details.
14
15     You should have received a copy of the GNU Lesser General Public
16     License along with this library; if not, write to the Free Software
17     Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18
19     Contact info: xamjadmin@users.sourceforge.net
20 */

21 /*
22  * Copyright (c) 2003 World Wide Web Consortium,
23  * (Massachusetts Institute of Technology, Institut National de
24  * Recherche en Informatique et en Automatique, Keio University). All
25  * Rights Reserved. This program is distributed under the W3C's Software
26  * Intellectual Property License. This program is distributed in the
27  * hope that it will be useful, but WITHOUT ANY WARRANTY; without even
28  * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
29  * PURPOSE.
30  * See W3C License http://www.w3.org/Consortium/Legal/ for more details.
31  */

32
33 package org.w3c.dom.html2;
34
35 /**
36  * Script statements. See the SCRIPT element definition in HTML 4.01.
37  * <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>.
38  */

39 public interface HTMLScriptElement extends HTMLElement {
40     /**
41      * The script content of the element.
42      */

43     public String JavaDoc getText();
44     /**
45      * The script content of the element.
46      */

47     public void setText(String JavaDoc text);
48
49     /**
50      * Reserved for future use.
51      */

52     public String JavaDoc getHtmlFor();
53     /**
54      * Reserved for future use.
55      */

56     public void setHtmlFor(String JavaDoc htmlFor);
57
58     /**
59      * Reserved for future use.
60      */

61     public String JavaDoc getEvent();
62     /**
63      * Reserved for future use.
64      */

65     public void setEvent(String JavaDoc event);
66
67     /**
68      * The character encoding of the linked resource. See the charset
69      * attribute definition in HTML 4.01.
70      */

71     public String JavaDoc getCharset();
72     /**
73      * The character encoding of the linked resource. See the charset
74      * attribute definition in HTML 4.01.
75      */

76     public void setCharset(String JavaDoc charset);
77
78     /**
79      * Indicates that the user agent can defer processing of the script. See
80      * the defer attribute definition in HTML 4.01.
81      */

82     public boolean getDefer();
83     /**
84      * Indicates that the user agent can defer processing of the script. See
85      * the defer attribute definition in HTML 4.01.
86      */

87     public void setDefer(boolean defer);
88
89     /**
90      * URI [<a HREF='http://www.ietf.org/rfc/rfc2396.txt'>IETF RFC 2396</a>] designating an external script. See the src attribute definition
91      * in HTML 4.01.
92      */

93     public String JavaDoc getSrc();
94     /**
95      * URI [<a HREF='http://www.ietf.org/rfc/rfc2396.txt'>IETF RFC 2396</a>] designating an external script. See the src attribute definition
96      * in HTML 4.01.
97      */

98     public void setSrc(String JavaDoc src);
99
100     /**
101      * The content type of the script language. See the type attribute
102      * definition in HTML 4.01.
103      */

104     public String JavaDoc getType();
105     /**
106      * The content type of the script language. See the type attribute
107      * definition in HTML 4.01.
108      */

109     public void setType(String JavaDoc type);
110
111 }
112
Popular Tags