/** * createDocument method * @return org.w3c.dom.Document */ protected Document internalCreateDocument() { DocumentStyleImpl document = new DocumentStyleImpl(); document.setModel(this); return document; }
/** * cloneNode method * @return org.w3c.dom.Node * @param deep boolean */ public Node cloneNode(boolean deep) { DocumentStyleImpl cloned = new DocumentStyleImpl(this); if (deep) cloned.importChildNodes(this, true); return cloned; }
protected void setModel(IDOMModel model) { super.setModel(model); } }
public StyleSheetList getStyleSheets() { INodeAdapter adapter = getAdapterFor(IStyleSheetListAdapter.class); if (adapter == null) return null; return ((IStyleSheetListAdapter) adapter).getStyleSheets(); }
protected void releaseStyleSheets() { INodeAdapter adapter = getExistingAdapter(IStyleSheetListAdapter.class); if (adapter == null) return; ((IStyleSheetListAdapter) adapter).releaseStyleSheets(); }
private void releaseStyleSheets() { if (!isShared()) { Document doc = getDocument(); if (doc instanceof DocumentStyleImpl) { ((DocumentStyleImpl) doc).releaseStyleSheets(); } } }
/** * createElement method * @return org.w3c.dom.Element * @param tagName java.lang.String */ public Element createElement(String tagName) throws DOMException { checkTagNameValidity(tagName); ElementStyleImpl element = new ElementStyleImpl(); element.setOwnerDocument(this); element.setTagName(tagName); return element; }
@Override public void setModel(IDOMModel model) { super.setModel(model); }
public CSSStyleDeclaration getOverrideStyle(Element element, String pseudoName) { INodeAdapter adapter = getAdapterFor(IStyleSheetListAdapter.class); if (adapter == null) return null; return ((IStyleSheetListAdapter) adapter).getOverrideStyle(element, pseudoName); }