com.steadystate.css.dom
Class CSSStyleRuleImpl

java.lang.Object
  extended by com.steadystate.css.dom.CSSOMObjectImpl
      extended by com.steadystate.css.dom.AbstractCSSRuleImpl
          extended by com.steadystate.css.dom.CSSStyleRuleImpl
All Implemented Interfaces:
CSSOMObject, Serializable, org.w3c.dom.css.CSSRule, org.w3c.dom.css.CSSStyleRule

public class CSSStyleRuleImpl
extends AbstractCSSRuleImpl
implements org.w3c.dom.css.CSSStyleRule

Implementation of CSSStyleRule.

Author:
David Schweinsberg, rbri
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.w3c.dom.css.CSSRule
CHARSET_RULE, FONT_FACE_RULE, IMPORT_RULE, MEDIA_RULE, PAGE_RULE, STYLE_RULE, UNKNOWN_RULE
 
Constructor Summary
CSSStyleRuleImpl()
           
CSSStyleRuleImpl(CSSStyleSheetImpl parentStyleSheet, org.w3c.dom.css.CSSRule parentRule, org.w3c.css.sac.SelectorList selectors)
           
 
Method Summary
 boolean equals(Object obj)
           
 String getCssText()
           
 org.w3c.css.sac.SelectorList getSelectors()
           
 String getSelectorText()
           
 org.w3c.dom.css.CSSStyleDeclaration getStyle()
           
 short getType()
           
 int hashCode()
           
 void setCssText(String cssText)
           
 void setSelectors(org.w3c.css.sac.SelectorList selectors)
           
 void setSelectorText(String selectorText)
           
 void setStyle(org.w3c.dom.css.CSSStyleDeclaration style)
           
 String toString()
           
 
Methods inherited from class com.steadystate.css.dom.AbstractCSSRuleImpl
getParentRule, getParentStyleSheet, getParentStyleSheetImpl, setParentRule, setParentStyleSheet
 
Methods inherited from class com.steadystate.css.dom.CSSOMObjectImpl
getUserData, getUserDataMap, setUserData, setUserDataMap
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.w3c.dom.css.CSSRule
getParentRule, getParentStyleSheet
 

Constructor Detail

CSSStyleRuleImpl

public CSSStyleRuleImpl(CSSStyleSheetImpl parentStyleSheet,
                        org.w3c.dom.css.CSSRule parentRule,
                        org.w3c.css.sac.SelectorList selectors)

CSSStyleRuleImpl

public CSSStyleRuleImpl()
Method Detail

getSelectors

public org.w3c.css.sac.SelectorList getSelectors()

setSelectors

public void setSelectors(org.w3c.css.sac.SelectorList selectors)

getType

public short getType()
Specified by:
getType in interface org.w3c.dom.css.CSSRule

getCssText

public String getCssText()
Specified by:
getCssText in interface org.w3c.dom.css.CSSRule

setCssText

public void setCssText(String cssText)
                throws DOMException
Specified by:
setCssText in interface org.w3c.dom.css.CSSRule
Throws:
DOMException

getSelectorText

public String getSelectorText()
Specified by:
getSelectorText in interface org.w3c.dom.css.CSSStyleRule

setSelectorText

public void setSelectorText(String selectorText)
                     throws DOMException
Specified by:
setSelectorText in interface org.w3c.dom.css.CSSStyleRule
Throws:
DOMException

getStyle

public org.w3c.dom.css.CSSStyleDeclaration getStyle()
Specified by:
getStyle in interface org.w3c.dom.css.CSSStyleRule

setStyle

public void setStyle(org.w3c.dom.css.CSSStyleDeclaration style)

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class AbstractCSSRuleImpl

hashCode

public int hashCode()
Overrides:
hashCode in class AbstractCSSRuleImpl


Copyright © 2013. All rights reserved.