Class StyleElement

    • Constructor Detail

      • StyleElement

        protected StyleElement()
    • Method Detail

      • as

        public static StyleElement 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.
      • getCssText

        public final java.lang.String getCssText()
        The CSS text.
      • getDisabled

        @Deprecated
        public final boolean getDisabled()
        Deprecated.
        use isDisabled() instead
        Enables/disables the style sheet.
      • getMedia

        public final java.lang.String getMedia()
        Designed for use with one or more target media.
        See Also:
        W3C HTML Specification
      • getType

        public final java.lang.String getType()
        The content type of the style sheet language.
        See Also:
        W3C HTML Specification
      • isDisabled

        public final boolean isDisabled()
        Enables/disables the style sheet.
      • setCssText

        public final void setCssText​(java.lang.String cssText)
        Sets the CSS text.
      • setDisabled

        public final void setDisabled​(boolean disabled)
        Enables/disables the style sheet.
      • setMedia

        public final void setMedia​(java.lang.String media)
        Designed for use with one or more target media.
        See Also:
        W3C HTML Specification
      • setType

        public final void setType​(java.lang.String type)
        The content type of the style sheet language.
        See Also:
        W3C HTML Specification