Class LinkElement


@TagName("link") public class LinkElement extends Element
The LINK element specifies a link to an external resource, and defines this document's relationship to that resource (or vice versa).
See Also:
  • Field Details

  • Constructor Details

    • LinkElement

      protected LinkElement()
  • Method Details

    • as

      public static LinkElement as(Element elem)
      Assert that the given Element is compatible with this class and automatically typecast it.
    • is

      public static boolean is(JavaScriptObject o)
      Determines whether the given JavaScriptObject can be cast to this class. A null object will cause this method to return false.
    • is

      public static boolean is(Node node)
      Determine whether the given Node can be cast to this class. A null node will cause this method to return false.
    • is

      public static boolean is(Element elem)
      Determine whether the given Element can be cast to this class. A null node will cause this method to return false.
    • getDisabled

      @Deprecated public final boolean getDisabled()
      Deprecated.
      use isDisabled() instead.
      Enables/disables the link. This is currently only used for style sheet links, and may be used to activate or deactivate style sheets.
    • getHref

      public final String getHref()
      The URI of the linked resource.
      See Also:
    • getHreflang

      public final String getHreflang()
      Language code of the linked resource.
      See Also:
    • getMedia

      public final String getMedia()
      Designed for use with one or more target media.
      See Also:
    • getRel

      public final String getRel()
      Forward link type.
      See Also:
    • getTarget

      public final String getTarget()
      Frame to render the resource in.
      See Also:
    • getType

      public final String getType()
      Advisory content type.
      See Also:
    • isDisabled

      public final boolean isDisabled()
      Enables/disables the link. This is currently only used for style sheet links, and may be used to activate or deactivate style sheets.
    • setDisabled

      public final void setDisabled(boolean disabled)
      Enables/disables the link. This is currently only used for style sheet links, and may be used to activate or deactivate style sheets.
    • setHref

      public final void setHref(String href)
      The URI of the linked resource.
      See Also:
    • setHreflang

      public final void setHreflang(String hreflang)
      Language code of the linked resource.
      See Also:
    • setMedia

      public final void setMedia(String media)
      Designed for use with one or more target media.
      See Also:
    • setRel

      public final void setRel(String rel)
      Forward link type.
      See Also:
    • setTarget

      public final void setTarget(String target)
      Frame to render the resource in.
      See Also:
    • setType

      public final void setType(String type)
      Advisory content type.
      See Also: