OSDN Git Service

Normalise whitespace in GNU Classpath.
[pf3gnuchains/gcc-fork.git] / libjava / classpath / external / w3c_dom / org / w3c / dom / css / DocumentCSS.java
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.Element;
16 import org.w3c.dom.stylesheets.DocumentStyle;
17
18 /**
19  * This interface represents a document with a CSS view.
20  * <p> The <code>getOverrideStyle</code> method provides a mechanism through
21  * which a DOM author could effect immediate change to the style of an
22  * element without modifying the explicitly linked style sheets of a
23  * document or the inline style of elements in the style sheets. This style
24  * sheet comes after the author style sheet in the cascade algorithm and is
25  * called override style sheet. The override style sheet takes precedence
26  * over author style sheets. An "!important" declaration still takes
27  * precedence over a normal declaration. Override, author, and user style
28  * sheets all may contain "!important" declarations. User "!important" rules
29  * take precedence over both override and author "!important" rules, and
30  * override "!important" rules take precedence over author "!important"
31  * rules.
32  * <p> The expectation is that an instance of the <code>DocumentCSS</code>
33  * interface can be obtained by using binding-specific casting methods on an
34  * instance of the <code>Document</code> interface.
35  * <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>.
36  * @since DOM Level 2
37  */
38 public interface DocumentCSS extends DocumentStyle {
39     /**
40      *  This method is used to retrieve the override style declaration for a
41      * specified element and a specified pseudo-element.
42      * @param elt  The element whose style is to be modified. This parameter
43      *   cannot be null.
44      * @param pseudoElt  The pseudo-element or <code>null</code> if none.
45      * @return  The override style declaration.
46      */
47     public CSSStyleDeclaration getOverrideStyle(Element elt,
48                                                 String pseudoElt);
49
50 }