Class AbstractStylableDocument

  • All Implemented Interfaces:
    java.io.Serializable, NodeEventTarget, ExtendedNode, NodeXBL, XBLManagerData, Localizable, org.w3c.dom.css.DocumentCSS, org.w3c.dom.Document, org.w3c.dom.events.DocumentEvent, org.w3c.dom.events.EventTarget, org.w3c.dom.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:
    Serialized Form
    • Field Detail

      • defaultView

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

        protected transient CSSEngine cssEngine
        The CSS engine.
    • Constructor Detail

      • AbstractStylableDocument

        protected AbstractStylableDocument()
      • AbstractStylableDocument

        protected AbstractStylableDocument​(org.w3c.dom.DocumentType dt,
                                           org.w3c.dom.DOMImplementation impl)
        Creates a new document.
    • Method Detail

      • 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​(org.w3c.dom.Element elt,
                                                                    java.lang.String pseudoElt)
        DOM: Implements DocumentCSS.getOverrideStyle(Element,String).
        Specified by:
        getOverrideStyle in interface org.w3c.dom.css.DocumentCSS