Source for org.w3c.dom.html2.HTMLLinkElement

   1: /*
   2:  * Copyright (c) 2003 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.
  10:  * See W3C License http://www.w3.org/Consortium/Legal/ for more details.
  11:  */
  12: 
  13: package org.w3c.dom.html2;
  14: 
  15: /**
  16:  * The <code>LINK</code> element specifies a link to an external resource, and
  17:  * defines this document's relationship to that resource (or vice versa).
  18:  * See the LINK element definition in HTML 4.01 (see also the
  19:  * <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>]).
  20:  * <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>.
  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:      * Enables/disables the link. This is currently only used for style sheet
  30:      * links, and may be used to activate or deactivate style sheets.
  31:      */
  32:     public void setDisabled(boolean disabled);
  33: 
  34:     /**
  35:      * The character encoding of the resource being linked to. See the charset
  36:      * attribute definition in HTML 4.01.
  37:      */
  38:     public String getCharset();
  39:     /**
  40:      * The character encoding of the resource being linked to. See the charset
  41:      * attribute definition in HTML 4.01.
  42:      */
  43:     public void setCharset(String charset);
  44: 
  45:     /**
  46:      * 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
  47:      * HTML 4.01.
  48:      */
  49:     public String getHref();
  50:     /**
  51:      * 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
  52:      * HTML 4.01.
  53:      */
  54:     public void setHref(String href);
  55: 
  56:     /**
  57:      * Language code of the linked resource. See the hreflang attribute
  58:      * definition in HTML 4.01.
  59:      */
  60:     public String getHreflang();
  61:     /**
  62:      * Language code of the linked resource. See the hreflang attribute
  63:      * definition in HTML 4.01.
  64:      */
  65:     public void setHreflang(String hreflang);
  66: 
  67:     /**
  68:      * Designed for use with one or more target media. See the media attribute
  69:      * definition in HTML 4.01.
  70:      */
  71:     public String getMedia();
  72:     /**
  73:      * Designed for use with one or more target media. See the media attribute
  74:      * definition in HTML 4.01.
  75:      */
  76:     public void setMedia(String media);
  77: 
  78:     /**
  79:      * Forward link type. See the rel attribute definition in HTML 4.01.
  80:      */
  81:     public String getRel();
  82:     /**
  83:      * Forward link type. See the rel attribute definition in HTML 4.01.
  84:      */
  85:     public void setRel(String rel);
  86: 
  87:     /**
  88:      * Reverse link type. See the rev attribute definition in HTML 4.01.
  89:      */
  90:     public String getRev();
  91:     /**
  92:      * Reverse link type. See the rev attribute definition in HTML 4.01.
  93:      */
  94:     public void setRev(String rev);
  95: 
  96:     /**
  97:      * Frame to render the resource in. See the target attribute definition in
  98:      * HTML 4.01.
  99:      */
 100:     public String getTarget();
 101:     /**
 102:      * Frame to render the resource in. See the target attribute definition in
 103:      * HTML 4.01.
 104:      */
 105:     public void setTarget(String target);
 106: 
 107:     /**
 108:      * Advisory content type. See the type attribute definition in HTML 4.01.
 109:      */
 110:     public String getType();
 111:     /**
 112:      * Advisory content type. See the type attribute definition in HTML 4.01.
 113:      */
 114:     public void setType(String type);
 115: 
 116: }