KickJava   Java API By Example, From Geeks To Geeks.

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


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  * The <code>LINK</code> element specifies a link to an external resource, and
37  * defines this document's relationship to that resource (or vice versa).
38  * See the LINK element definition in HTML 4.01 (see also the
39  * <code>LinkStyle</code> interface in the StyleSheet module [<a HREF='http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113'>DOM Level 2 Style Sheets and CSS</a>]).
40  * <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>.
41  */

42 public interface HTMLLinkElement extends HTMLElement {
43     /**
44      * Enables/disables the link. This is currently only used for style sheet
45      * links, and may be used to activate or deactivate style sheets.
46      */

47     public boolean getDisabled();
48     /**
49      * Enables/disables the link. This is currently only used for style sheet
50      * links, and may be used to activate or deactivate style sheets.
51      */

52     public void setDisabled(boolean disabled);
53
54     /**
55      * The character encoding of the resource being linked to. See the charset
56      * attribute definition in HTML 4.01.
57      */

58     public String JavaDoc getCharset();
59     /**
60      * The character encoding of the resource being linked to. See the charset
61      * attribute definition in HTML 4.01.
62      */

63     public void setCharset(String JavaDoc charset);
64
65     /**
66      * The URI [<a HREF='http://www.ietf.org/rfc/rfc2396.txt'>IETF RFC 2396</a>] of the linked resource. See the href attribute definition in
67      * HTML 4.01.
68      */

69     public String JavaDoc getHref();
70     /**
71      * The URI [<a HREF='http://www.ietf.org/rfc/rfc2396.txt'>IETF RFC 2396</a>] of the linked resource. See the href attribute definition in
72      * HTML 4.01.
73      */

74     public void setHref(String JavaDoc href);
75
76     /**
77      * Language code of the linked resource. See the hreflang attribute
78      * definition in HTML 4.01.
79      */

80     public String JavaDoc getHreflang();
81     /**
82      * Language code of the linked resource. See the hreflang attribute
83      * definition in HTML 4.01.
84      */

85     public void setHreflang(String JavaDoc hreflang);
86
87     /**
88      * Designed for use with one or more target media. See the media attribute
89      * definition in HTML 4.01.
90      */

91     public String JavaDoc getMedia();
92     /**
93      * Designed for use with one or more target media. See the media attribute
94      * definition in HTML 4.01.
95      */

96     public void setMedia(String JavaDoc media);
97
98     /**
99      * Forward link type. See the rel attribute definition in HTML 4.01.
100      */

101     public String JavaDoc getRel();
102     /**
103      * Forward link type. See the rel attribute definition in HTML 4.01.
104      */

105     public void setRel(String JavaDoc rel);
106
107     /**
108      * Reverse link type. See the rev attribute definition in HTML 4.01.
109      */

110     public String JavaDoc getRev();
111     /**
112      * Reverse link type. See the rev attribute definition in HTML 4.01.
113      */

114     public void setRev(String JavaDoc rev);
115
116     /**
117      * Frame to render the resource in. See the target attribute definition in
118      * HTML 4.01.
119      */

120     public String JavaDoc getTarget();
121     /**
122      * Frame to render the resource in. See the target attribute definition in
123      * HTML 4.01.
124      */

125     public void setTarget(String JavaDoc target);
126
127     /**
128      * Advisory content type. See the type attribute definition in HTML 4.01.
129      */

130     public String JavaDoc getType();
131     /**
132      * Advisory content type. See the type attribute definition in HTML 4.01.
133      */

134     public void setType(String JavaDoc type);
135
136 }
137
Popular Tags