GNU Classpath (0.95) | |
Frames | No Frames |
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.views.AbstractView; 17: 18: /** 19: * This interface represents a CSS view. The <code>getComputedStyle</code> 20: * method provides a read only access to the computed values of an element. 21: * <p> The expectation is that an instance of the <code>ViewCSS</code> 22: * interface can be obtained by using binding-specific casting methods on an 23: * instance of the <code>AbstractView</code> interface. 24: * <p> Since a computed style is related to an <code>Element</code> node, if 25: * this element is removed from the document, the associated 26: * <code>CSSStyleDeclaration</code> and <code>CSSValue</code> related to 27: * this declaration are no longer valid. 28: * <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>. 29: * @since DOM Level 2 30: */ 31: public interface ViewCSS extends AbstractView { 32: /** 33: * 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>]. 34: * @param elt The element whose style is to be computed. This parameter 35: * cannot be null. 36: * @param pseudoElt The pseudo-element or <code>null</code> if none. 37: * @return The computed style. The <code>CSSStyleDeclaration</code> is 38: * read-only and contains only absolute values. 39: */ 40: public CSSStyleDeclaration getComputedStyle(Element elt, 41: String pseudoElt); 42: 43: }
GNU Classpath (0.95) |