Class StyleElement


@TagName("style") public class StyleElement extends Element
Style information.
See Also:
  • Field Details

  • Constructor Details

    • StyleElement

      protected StyleElement()
  • Method Details

    • 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 String getCssText()
      The CSS text.
    • getDisabled

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

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

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

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

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

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

      public final void setMedia(String media)
      Designed for use with one or more target media.
      See Also:
    • setType

      public final void setType(String type)
      The content type of the style sheet language.
      See Also: