Class AbstractStylableDocument

All Implemented Interfaces:
Serializable, NodeEventTarget, ExtendedNode, NodeXBL, XBLManagerData, Localizable, org.w3c.dom.css.DocumentCSS, Document, DocumentEvent, EventTarget, Node, org.w3c.dom.stylesheets.DocumentStyle, org.w3c.dom.traversal.DocumentTraversal, org.w3c.dom.views.DocumentView, org.w3c.dom.xpath.XPathEvaluator
Direct Known Subclasses:
SVGOMDocument

public abstract class AbstractStylableDocument extends AbstractDocument implements org.w3c.dom.css.DocumentCSS, org.w3c.dom.views.DocumentView
A Document that supports CSS styling.
See Also:
  • Field Details

    • defaultView

      protected transient org.w3c.dom.views.AbstractView defaultView
      The default view.
    • cssEngine

      protected transient CSSEngine cssEngine
      The CSS engine.
  • Constructor Details

    • AbstractStylableDocument

      protected AbstractStylableDocument()
    • AbstractStylableDocument

      protected AbstractStylableDocument(DocumentType dt, DOMImplementation impl)
      Creates a new document.
  • Method Details

    • setCSSEngine

      public void setCSSEngine(CSSEngine ctx)
      Sets the CSS engine.
    • getCSSEngine

      public CSSEngine getCSSEngine()
      Returns the CSS engine.
    • getStyleSheets

      public org.w3c.dom.stylesheets.StyleSheetList getStyleSheets()
      DOM: Implements DocumentStyle.getStyleSheets().
      Specified by:
      getStyleSheets in interface org.w3c.dom.stylesheets.DocumentStyle
    • getDefaultView

      public org.w3c.dom.views.AbstractView getDefaultView()
      DOM: Implements DocumentView.getDefaultView().
      Specified by:
      getDefaultView in interface org.w3c.dom.views.DocumentView
      Returns:
      a ViewCSS object.
    • clearViewCSS

      public void clearViewCSS()
      Clears the view CSS.
    • getOverrideStyle

      public org.w3c.dom.css.CSSStyleDeclaration getOverrideStyle(Element elt, String pseudoElt)
      DOM: Implements DocumentCSS.getOverrideStyle(Element,String).
      Specified by:
      getOverrideStyle in interface org.w3c.dom.css.DocumentCSS