com.aspose.html

Class HTMLStyleElement

    • Constructor Detail

      • HTMLStyleElement

        public HTMLStyleElement(com.aspose.html.dom.DOMName name,
                                Document doc)

        Initializes a new instance of the HTMLStyleElement class.

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

      • getDisabled

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

        Enables/disables the style sheet.

      • setDisabled

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

        Enables/disables the style sheet.

      • 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.

      • getType

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

        The content type of the style sheet language. See the type attribute definition in HTML 4.01.

      • setType

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

        The content type of the style sheet language. See the type attribute definition in HTML 4.01.

      • getStyleSheet

        public com.aspose.html.dom.css.engine.CSSStyleSheet getStyleSheet()

        Gets the associated style sheet.

        Specified by:
        getStyleSheet in interface com.aspose.html.dom.runtime.modules.ILinkStyleEx
      • setStyleSheet

        public void setStyleSheet(com.aspose.html.dom.css.engine.CSSStyleSheet value)

        Gets the associated style sheet.

        Specified by:
        setStyleSheet in interface com.aspose.html.dom.runtime.modules.ILinkStyleEx