com.vaadin.terminal.gwt.client
Class CSSRule

java.lang.Object
  extended by com.vaadin.terminal.gwt.client.CSSRule

public class CSSRule
extends Object

Utility class for fetching CSS properties from DOM StyleSheets JS object.


Constructor Summary
CSSRule(String selector, boolean deep)
           
 
Method Summary
 String getPropertyValue(String propertyName)
          Returns a specific property value from this CSS rule.
 String getSelector()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CSSRule

public CSSRule(String selector,
               boolean deep)
Parameters:
selector - the CSS selector to search for in the stylesheets
deep - should the search follow any @import statements?
Method Detail

getPropertyValue

public String getPropertyValue(String propertyName)
Returns a specific property value from this CSS rule.

Parameters:
propertyName - camelCase CSS property name
Returns:
the value of the property as a String

getSelector

public String getSelector()


Copyright © 2000-2011 Vaadin Ltd. All Rights Reserved.