01: /*
02: * Copyright (c) 2000 World Wide Web Consortium,
03: * (Massachusetts Institute of Technology, Institut National de
04: * Recherche en Informatique et en Automatique, Keio University). All
05: * Rights Reserved. This program is distributed under the W3C's Software
06: * Intellectual Property License. This program is distributed in the
07: * hope that it will be useful, but WITHOUT ANY WARRANTY; without even
08: * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
09: * 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:
29: public void setDisabled(boolean disabled);
30:
31: /**
32: * The character encoding of the resource being linked to. See the
33: * charset attribute definition in HTML 4.0.
34: */
35: public String getCharset();
36:
37: public void setCharset(String charset);
38:
39: /**
40: * The URI of the linked resource. See the href attribute definition in
41: * HTML 4.0.
42: */
43: public String getHref();
44:
45: public void setHref(String href);
46:
47: /**
48: * Language code of the linked resource. See the hreflang attribute
49: * definition in HTML 4.0.
50: */
51: public String getHreflang();
52:
53: public void setHreflang(String hreflang);
54:
55: /**
56: * Designed for use with one or more target media. See the media
57: * attribute definition in HTML 4.0.
58: */
59: public String getMedia();
60:
61: public void setMedia(String media);
62:
63: /**
64: * Forward link type. See the rel attribute definition in HTML 4.0.
65: */
66: public String getRel();
67:
68: public void setRel(String rel);
69:
70: /**
71: * Reverse link type. See the rev attribute definition in HTML 4.0.
72: */
73: public String getRev();
74:
75: public void setRev(String rev);
76:
77: /**
78: * Frame to render the resource in. See the target attribute definition
79: * in HTML 4.0.
80: */
81: public String getTarget();
82:
83: public void setTarget(String target);
84:
85: /**
86: * Advisory content type. See the type attribute definition in HTML 4.0.
87: */
88: public String getType();
89:
90: public void setType(String type);
91:
92: }
|