001    /*
002     * Copyright (c) 2000 World Wide Web Consortium,
003     * (Massachusetts Institute of Technology, Institut National de
004     * Recherche en Informatique et en Automatique, Keio University). All
005     * Rights Reserved. This program is distributed under the W3C's Software
006     * Intellectual Property License. This program is distributed in the
007     * hope that it will be useful, but WITHOUT ANY WARRANTY; without even
008     * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
009     * PURPOSE.
010     * See W3C License http://www.w3.org/Consortium/Legal/ for more details.
011     */
012    
013    package org.w3c.dom.css;
014    
015    import org.w3c.dom.Element;
016    import org.w3c.dom.views.AbstractView;
017    
018    /**
019     *  This interface represents a CSS view. The <code>getComputedStyle</code> 
020     * method provides a read only access to the computed values of an element. 
021     * <p> The expectation is that an instance of the <code>ViewCSS</code> 
022     * interface can be obtained by using binding-specific casting methods on an 
023     * instance of the <code>AbstractView</code> interface. 
024     * <p> Since a computed style is related to an <code>Element</code> node, if 
025     * this element is removed from the document, the associated 
026     * <code>CSSStyleDeclaration</code> and <code>CSSValue</code> related to 
027     * this declaration are no longer valid. 
028     * <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>.
029     * @since DOM Level 2
030     */
031    public interface ViewCSS extends AbstractView {
032        /**
033         *  This method is used to get the computed style as it is defined in [<a href='http://www.w3.org/TR/1998/REC-CSS2-19980512'>CSS2</a>]. 
034         * @param elt  The element whose style is to be computed. This parameter 
035         *   cannot be null. 
036         * @param pseudoElt  The pseudo-element or <code>null</code> if none. 
037         * @return  The computed style. The <code>CSSStyleDeclaration</code> is 
038         *   read-only and contains only absolute values. 
039         */
040        public CSSStyleDeclaration getComputedStyle(Element elt, 
041                                                    String pseudoElt);
042    
043    }