1 /* 2 * Copyright (c) 2000 World Wide Web Consortium, 3 * (Massachusetts Institute of Technology, Institut National de 4 * Recherche en Informatique et en Automatique, Keio University). All 5 * Rights Reserved. This program is distributed under the W3C's Software 6 * Intellectual Property License. This program is distributed in the 7 * hope that it will be useful, but WITHOUT ANY WARRANTY; without even 8 * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 9 * PURPOSE. 10 * See W3C License http://www.w3.org/Consortium/Legal/ for more details. 11 */ 12 13 package org.w3c.dom.css; 14 15 import org.w3c.dom.DOMImplementation; 16 import org.w3c.dom.DOMException; 17 18 /** 19 * This interface allows the DOM user to create a <code>CSSStyleSheet</code> 20 * outside the context of a document. There is no way to associate the new 21 * <code>CSSStyleSheet</code> with a document in DOM Level 2. 22 * <p>See also the <a HREF='http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113'>Document Object Model (DOM) Level 2 Style Specification</a>. 23 * @since DOM Level 2 24 */ 25 public interface DOMImplementationCSS extends DOMImplementation { 26 /** 27 * Creates a new <code>CSSStyleSheet</code>. 28 * @param title The advisory title. See also the section. 29 * @param media The comma-separated list of media associated with the new 30 * style sheet. See also the section. 31 * @return A new CSS style sheet. 32 * @exception DOMException 33 * SYNTAX_ERR: Raised if the specified media string value has a syntax 34 * error and is unparsable. 35 */ 36 public CSSStyleSheet createCSSStyleSheet(String title, 37 String media) 38 throws DOMException; 39 40 } 41