com.aspose.html

Class HTMLLinkElement

    • Constructor Detail

      • HTMLLinkElement

        public HTMLLinkElement(DOMName name,
                               Document doc)

        Initializes a new instance of the HTMLLinkElement class.

        Parameters:
        name - The DOM name.
        doc - The document.
    • Method Detail

      • getDisabled

        @DOMNameAttribute(name="disabled")
        public boolean getDisabled()

        Enables/disables the link. This is currently only used for style sheet links, and may be used to activate or deactivate style sheets.

      • setDisabled

        @DOMNameAttribute(name="disabled")
        public void setDisabled(boolean value)

        Enables/disables the link. This is currently only used for style sheet links, and may be used to activate or deactivate style sheets.

      • getCharset

        @DOMNameAttribute(name="charset")
        public String getCharset()

        The character encoding of the resource being linked to. See the charset attribute definition in HTML 4.01.

      • setCharset

        @DOMNameAttribute(name="charset")
        public void setCharset(String value)

        The character encoding of the resource being linked to. See the charset attribute definition in HTML 4.01.

      • getHreflang

        @DOMNameAttribute(name="hreflang")
        public String getHreflang()

        Language code of the linked resource. See the hreflang attribute definition in HTML 4.01.

      • setHreflang

        @DOMNameAttribute(name="hreflang")
        public void setHreflang(String value)

        Language code of the linked resource. See the hreflang attribute definition in HTML 4.01.

      • getMedia

        @DOMNameAttribute(name="media")
        public String getMedia()

        Designed for use with one or more target media. See the media attribute definition in HTML 4.01.

      • setMedia

        @DOMNameAttribute(name="media")
        public void setMedia(String value)

        Designed for use with one or more target media. See the media attribute definition in HTML 4.01.

      • setRel

        @DOMNameAttribute(name="rel")
        public void setRel(String value)

        Forward link type. See the rel attribute definition in HTML 4.01.

      • setRev

        @DOMNameAttribute(name="rev")
        public void setRev(String value)

        Reverse link type. See the rev attribute definition in HTML 4.01.

      • getTarget

        @DOMNameAttribute(name="target")
        public String getTarget()

        Frame to render the resource in. See the target attribute definition in HTML 4.01.

      • setTarget

        @DOMNameAttribute(name="target")
        public void setTarget(String value)

        Frame to render the resource in. See the target attribute definition in HTML 4.01.

      • getType

        @DOMNameAttribute(name="type")
        public String getType()

        Advisory content type. See the type attribute definition in HTML 4.01.

      • setType

        @DOMNameAttribute(name="type")
        public void setType(String value)

        Advisory content type. See the type attribute definition in HTML 4.01.