Class HTMLLinkElement

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, org.htmlunit.corejs.javascript.ConstProperties, org.htmlunit.corejs.javascript.debug.DebuggableObject, org.htmlunit.corejs.javascript.Scriptable, org.htmlunit.corejs.javascript.SymbolScriptable

    public class HTMLLinkElement
    extends HTMLElement
    The JavaScript object HTMLLinkElement.
    See Also:
    Serialized Form
    • Field Detail

      • LOG

        private static final org.apache.commons.logging.Log LOG
      • sheet_

        private CSSStyleSheet sheet_
        The associated style sheet (only valid for links of type <link rel="stylesheet" type="text/css" href="..." />).
    • Constructor Detail

      • HTMLLinkElement

        public HTMLLinkElement()
        Creates an instance.
    • Method Detail

      • getDomNodeOrDie

        public HtmlLink getDomNodeOrDie()
        Returns the DOM node that corresponds to this JavaScript object or throw an exception if one cannot be found.
        Overrides:
        getDomNodeOrDie in class HTMLElement
        Returns:
        the DOM node
      • setHref

        public void setHref​(java.lang.String href)
        Sets the href property.
        Parameters:
        href - href attribute value
      • getHref

        public java.lang.String getHref()
        Returns the value of the href property.
        Returns:
        the href property
      • setRel

        public void setRel​(java.lang.String rel)
        Sets the rel property.
        Parameters:
        rel - rel attribute value
      • getRel

        public java.lang.String getRel()
        Returns the value of the rel property.
        Returns:
        the rel property
      • setRev

        public void setRev​(java.lang.String rel)
        Sets the rev property.
        Parameters:
        rel - rev attribute value
      • getRev

        public java.lang.String getRev()
        Returns the value of the rev property.
        Returns:
        the rev property
      • setType

        public void setType​(java.lang.String type)
        Sets the type property.
        Parameters:
        type - type attribute value
      • getType

        public java.lang.String getType()
        Returns the value of the type property.
        Returns:
        the type property
      • getSheet

        public CSSStyleSheet getSheet()
        Returns the associated style sheet (only valid for links of type <link rel="stylesheet" type="text/css" href="..." />).
        Returns:
        the associated style sheet
      • isEndTagForbidden

        protected boolean isEndTagForbidden()
        Returns whether the end tag is forbidden or not.
        Overrides:
        isEndTagForbidden in class HTMLElement
        Returns:
        whether the end tag is forbidden or not
        See Also:
        HTML 4 specs
      • getRelList

        public DOMTokenList getRelList()
        Returns the relList attribute.
        Returns:
        the relList attribute
      • setRelList

        public void setRelList​(java.lang.Object rel)
        Sets the relList property.
        Parameters:
        rel - attribute value
      • isDisabled

        public boolean isDisabled()
        Returns true if this element is disabled. Overridden to modify browser configurations.
        Overrides:
        isDisabled in class HTMLElement
        Returns:
        true if this element is disabled
      • setDisabled

        public void setDisabled​(boolean disabled)
        Sets whether or not to disable this element. Overridden to modify browser configurations.
        Overrides:
        setDisabled in class HTMLElement
        Parameters:
        disabled - True if this is to be disabled