public class

LinkElement

extends Element
java.lang.Object
   ↳ com.google.gwt.core.client.JavaScriptObject
     ↳ com.google.gwt.dom.client.Node
       ↳ com.google.gwt.dom.client.Element
         ↳ com.google.gwt.dom.client.LinkElement

Class Overview

The LINK element specifies a link to an external resource, and defines this document's relationship to that resource (or vice versa).

Summary

[Expand]
Inherited Constants
From class com.google.gwt.dom.client.Node
Protected Constructors
LinkElement()
Public Methods
static LinkElement as(Element elem)
Assert that the given Element is compatible with this class and automatically typecast it.
final boolean getDisabled()
This method is deprecated. use isDisabled() instead.
final String getHref()
The URI of the linked resource.
final String getHreflang()
Language code of the linked resource.
final String getMedia()
Designed for use with one or more target media.
final String getRel()
Forward link type.
final String getTarget()
Frame to render the resource in.
final String getType()
Advisory content type.
final boolean isDisabled()
Enables/disables the link.
final void setDisabled(boolean disabled)
Enables/disables the link.
final void setHref(String href)
The URI of the linked resource.
final void setHreflang(String hreflang)
Language code of the linked resource.
final void setMedia(String media)
Designed for use with one or more target media.
final void setRel(String rel)
Forward link type.
final void setTarget(String target)
Frame to render the resource in.
final void setType(String type)
Advisory content type.
[Expand]
Inherited Methods
From class com.google.gwt.dom.client.Element
From class com.google.gwt.dom.client.Node
From class com.google.gwt.core.client.JavaScriptObject
From class java.lang.Object

Protected Constructors

protected LinkElement ()

Public Methods

public static LinkElement as (Element elem)

Assert that the given Element is compatible with this class and automatically typecast it.

public final boolean getDisabled ()

This method is 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.

public final String getHref ()

The URI of the linked resource.

public final String getHreflang ()

Language code of the linked resource.

public final String getMedia ()

Designed for use with one or more target media.

public final String getRel ()

Forward link type.

public final String getTarget ()

Frame to render the resource in.

public final String getType ()

Advisory content type.

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.

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.

public final void setHref (String href)

The URI of the linked resource.

public final void setHreflang (String hreflang)

Language code of the linked resource.

public final void setMedia (String media)

Designed for use with one or more target media.

public final void setRel (String rel)

Forward link type.

public final void setTarget (String target)

Frame to render the resource in.

public final void setType (String type)

Advisory content type.