info.magnolia.ui.vaadin.gwt.client.layout
Class CssRule
java.lang.Object
info.magnolia.ui.vaadin.gwt.client.layout.CssRule
public class CssRule
- extends Object
Utility class for fetching CSS properties from DOM StyleSheets JS object and
for creating new CSS rules dynamically.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CssRule
public CssRule(String selector,
boolean deep)
- Parameters:
selector
- the CSS selector to search for in the stylesheetsdeep
- should the search follow any @import statements?
getProperty
public String getProperty(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
setProperty
public void setProperty(String propertyName,
String propertyValue)
- Sets a specific property value for this CSS rule.
- Parameters:
propertyName
- camelCase CSS property namepropertyValue
- the value of the property as a String
getSelector
public String getSelector()
create
public static CssRule create(String selector)
Copyright © 2013 Magnolia International Ltd.. All Rights Reserved.