We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.terminal.gwt.client.
Class CSSRule
java.lang.Object
com.vaadin.terminal.gwt.client.CSSRule
- extends Object
public class CSSRule
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)
- Parameters:
propertyName
- camelCase CSS property name- Returns:
- the value of the property as a String
Returns a specific property value from this CSS rule.
getSelector
public String getSelector()