Class HTMLStyleElement

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

public class HTMLStyleElement extends HTMLElement
The JavaScript object HTMLStyleElement.
See Also:
  • Field Details

  • Constructor Details

    • HTMLStyleElement

      public HTMLStyleElement()
      Creates an instance.
  • Method Details

    • jsConstructor

      public void jsConstructor()
      JavaScript constructor.
      Overrides:
      jsConstructor in class HTMLElement
    • getSheet

      public CSSStyleSheet getSheet()
      Gets the associated sheet.
      Returns:
      the sheet
      See Also:
    • getType

      public String getType()
      Returns the type of this style.
      Returns:
      the type
    • setType

      public void setType(String type)
      Sets the type of this style.
      Parameters:
      type - the new type
    • getMedia

      public String getMedia()
      Returns the media of this style.
      Returns:
      the media
    • setMedia

      public void setMedia(String media)
      Sets the media of this style.
      Parameters:
      media - the new media
    • isDisabled

      public boolean isDisabled()
      Returns the disabled property.
      Overrides:
      isDisabled in class HTMLElement
      Returns:
      the disabled property
    • setDisabled

      public void setDisabled(boolean disabled)
      Sets the disabled property.
      Overrides:
      setDisabled in class HTMLElement
      Parameters:
      disabled - the disabled property