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. package org.w3c.dom.html;
  13. /**
  14. * The <code>LINK</code> element specifies a link to an external resource,
  15. * and defines this document's relationship to that resource (or vice versa).
  16. * See the LINK element definition in HTML 4.0 (see also the
  17. * <code>LinkStyle</code> interface in the module).
  18. * <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>.
  19. */
  20. public interface HTMLLinkElement extends HTMLElement {
  21. /**
  22. * Enables/disables the link. This is currently only used for style sheet
  23. * links, and may be used to activate or deactivate style sheets.
  24. */
  25. public boolean getDisabled();
  26. public void setDisabled(boolean disabled);
  27. /**
  28. * The character encoding of the resource being linked to. See the
  29. * charset attribute definition in HTML 4.0.
  30. */
  31. public String getCharset();
  32. public void setCharset(String charset);
  33. /**
  34. * The URI of the linked resource. See the href attribute definition in
  35. * HTML 4.0.
  36. */
  37. public String getHref();
  38. public void setHref(String href);
  39. /**
  40. * Language code of the linked resource. See the hreflang attribute
  41. * definition in HTML 4.0.
  42. */
  43. public String getHreflang();
  44. public void setHreflang(String hreflang);
  45. /**
  46. * Designed for use with one or more target media. See the media
  47. * attribute definition in HTML 4.0.
  48. */
  49. public String getMedia();
  50. public void setMedia(String media);
  51. /**
  52. * Forward link type. See the rel attribute definition in HTML 4.0.
  53. */
  54. public String getRel();
  55. public void setRel(String rel);
  56. /**
  57. * Reverse link type. See the rev attribute definition in HTML 4.0.
  58. */
  59. public String getRev();
  60. public void setRev(String rev);
  61. /**
  62. * Frame to render the resource in. See the target attribute definition
  63. * in HTML 4.0.
  64. */
  65. public String getTarget();
  66. public void setTarget(String target);
  67. /**
  68. * Advisory content type. See the type attribute definition in HTML 4.0.
  69. */
  70. public String getType();
  71. public void setType(String type);
  72. }