KickJava   Java API By Example, From Geeks To Geeks.

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


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
13 package org.w3c.dom.html;
14
15 /**
16  * The <code>LINK</code> element specifies a link to an external resource,
17  * and defines this document's relationship to that resource (or vice versa).
18  * See the LINK element definition in HTML 4.0 (see also the
19  * <code>LinkStyle</code> interface in the module).
20  * <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>.
21  */

22 public interface HTMLLinkElement extends HTMLElement {
23     /**
24      * Enables/disables the link. This is currently only used for style sheet
25      * links, and may be used to activate or deactivate style sheets.
26      */

27     public boolean getDisabled();
28     public void setDisabled(boolean disabled);
29
30     /**
31      * The character encoding of the resource being linked to. See the
32      * charset attribute definition in HTML 4.0.
33      */

34     public String JavaDoc getCharset();
35     public void setCharset(String JavaDoc charset);
36
37     /**
38      * The URI of the linked resource. See the href attribute definition in
39      * HTML 4.0.
40      */

41     public String JavaDoc getHref();
42     public void setHref(String JavaDoc href);
43
44     /**
45      * Language code of the linked resource. See the hreflang attribute
46      * definition in HTML 4.0.
47      */

48     public String JavaDoc getHreflang();
49     public void setHreflang(String JavaDoc hreflang);
50
51     /**
52      * Designed for use with one or more target media. See the media
53      * attribute definition in HTML 4.0.
54      */

55     public String JavaDoc getMedia();
56     public void setMedia(String JavaDoc media);
57
58     /**
59      * Forward link type. See the rel attribute definition in HTML 4.0.
60      */

61     public String JavaDoc getRel();
62     public void setRel(String JavaDoc rel);
63
64     /**
65      * Reverse link type. See the rev attribute definition in HTML 4.0.
66      */

67     public String JavaDoc getRev();
68     public void setRev(String JavaDoc rev);
69
70     /**
71      * Frame to render the resource in. See the target attribute definition
72      * in HTML 4.0.
73      */

74     public String JavaDoc getTarget();
75     public void setTarget(String JavaDoc target);
76
77     /**
78      * Advisory content type. See the type attribute definition in HTML 4.0.
79      */

80     public String JavaDoc getType();
81     public void setType(String JavaDoc type);
82
83 }
84
85
Popular Tags