com.webrenderer.dom
Interface IStyleRule


public interface IStyleRule

Represents a single style rule in a style sheet


Method Summary
 java.lang.String getCSSText()
          Returns the text of the rule (The text between the braces)
 java.lang.String getProperty(java.lang.String propertyName)
          Returns the value for given css property.
 java.lang.String getSelectorText()
          Returns the selectorText for the current rule (e.g .body)
 void setProperty(java.lang.String propertyName, java.lang.String propertyValue)
          Sets the given property to given value for this rule.
 

Method Detail

getSelectorText

public java.lang.String getSelectorText()
Returns the selectorText for the current rule (e.g .body)


getCSSText

public java.lang.String getCSSText()
Returns the text of the rule (The text between the braces)


getProperty

public java.lang.String getProperty(java.lang.String propertyName)
Returns the value for given css property.
CSS property may be given with hyphens changed to capitilized words
e.g. the property background-color can be passed as backgroundColor or background-color


setProperty

public void setProperty(java.lang.String propertyName,
                        java.lang.String propertyValue)
Sets the given property to given value for this rule.
CSS property may be given with hyphens changed to capitilized words
e.g. the property background-color can be passed as backgroundColor or background-color

Parameters:
propertyName - the property to set
propertyValue - the value to set the property to