com.steadystate.css.dom
Class CSSStyleSheetImpl

java.lang.Object
  extended by com.steadystate.css.dom.CSSStyleSheetImpl
All Implemented Interfaces:
Serializable, org.w3c.dom.css.CSSStyleSheet, org.w3c.dom.stylesheets.StyleSheet

public class CSSStyleSheetImpl
extends Object
implements org.w3c.dom.css.CSSStyleSheet, Serializable

Implementation of CSSStyleSheet.

Author:
David Schweinsberg, rbri
See Also:
Serialized Form

Constructor Summary
CSSStyleSheetImpl()
           
 
Method Summary
 void deleteRule(int index)
           
 boolean equals(Object obj)
           
 org.w3c.dom.css.CSSRuleList getCssRules()
           
 boolean getDisabled()
           
 String getHref()
           
 org.w3c.dom.stylesheets.MediaList getMedia()
           
 Node getOwnerNode()
           
 org.w3c.dom.css.CSSRule getOwnerRule()
           
 org.w3c.dom.stylesheets.StyleSheet getParentStyleSheet()
           
 String getTitle()
           
 String getType()
           
 int hashCode()
           
 void importImports(boolean recursive)
          Imports referenced CSSStyleSheets.
 int insertRule(String rule, int index)
           
 boolean isReadOnly()
           
 void setBaseUri(String baseUri)
           
 void setCssRules(org.w3c.dom.css.CSSRuleList rules)
           
 void setDisabled(boolean disabled)
          We will need to respond more fully if a stylesheet is disabled, probably by generating an event for the main application.
 void setHref(String href)
           
 void setMedia(org.w3c.dom.stylesheets.MediaList media)
           
 void setMediaText(String mediaText)
           
 void setOwnerNode(Node ownerNode)
           
 void setOwnerRule(org.w3c.dom.css.CSSRule ownerRule)
           
 void setParentStyleSheet(org.w3c.dom.stylesheets.StyleSheet parentStyleSheet)
           
 void setReadOnly(boolean b)
           
 void setTitle(String title)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CSSStyleSheetImpl

public CSSStyleSheetImpl()
Method Detail

setMedia

public void setMedia(org.w3c.dom.stylesheets.MediaList media)

setBaseUri

public void setBaseUri(String baseUri)

getType

public String getType()
Specified by:
getType in interface org.w3c.dom.stylesheets.StyleSheet

getDisabled

public boolean getDisabled()
Specified by:
getDisabled in interface org.w3c.dom.stylesheets.StyleSheet

setDisabled

public void setDisabled(boolean disabled)
We will need to respond more fully if a stylesheet is disabled, probably by generating an event for the main application.

Specified by:
setDisabled in interface org.w3c.dom.stylesheets.StyleSheet

getOwnerNode

public Node getOwnerNode()
Specified by:
getOwnerNode in interface org.w3c.dom.stylesheets.StyleSheet

getParentStyleSheet

public org.w3c.dom.stylesheets.StyleSheet getParentStyleSheet()
Specified by:
getParentStyleSheet in interface org.w3c.dom.stylesheets.StyleSheet

getHref

public String getHref()
Specified by:
getHref in interface org.w3c.dom.stylesheets.StyleSheet

getTitle

public String getTitle()
Specified by:
getTitle in interface org.w3c.dom.stylesheets.StyleSheet

getMedia

public org.w3c.dom.stylesheets.MediaList getMedia()
Specified by:
getMedia in interface org.w3c.dom.stylesheets.StyleSheet

getOwnerRule

public org.w3c.dom.css.CSSRule getOwnerRule()
Specified by:
getOwnerRule in interface org.w3c.dom.css.CSSStyleSheet

getCssRules

public org.w3c.dom.css.CSSRuleList getCssRules()
Specified by:
getCssRules in interface org.w3c.dom.css.CSSStyleSheet

insertRule

public int insertRule(String rule,
                      int index)
               throws DOMException
Specified by:
insertRule in interface org.w3c.dom.css.CSSStyleSheet
Throws:
DOMException

deleteRule

public void deleteRule(int index)
                throws DOMException
Specified by:
deleteRule in interface org.w3c.dom.css.CSSStyleSheet
Throws:
DOMException

isReadOnly

public boolean isReadOnly()

setReadOnly

public void setReadOnly(boolean b)

setOwnerNode

public void setOwnerNode(Node ownerNode)

setParentStyleSheet

public void setParentStyleSheet(org.w3c.dom.stylesheets.StyleSheet parentStyleSheet)

setHref

public void setHref(String href)

setTitle

public void setTitle(String title)

setMediaText

public void setMediaText(String mediaText)

setOwnerRule

public void setOwnerRule(org.w3c.dom.css.CSSRule ownerRule)

setCssRules

public void setCssRules(org.w3c.dom.css.CSSRuleList rules)

toString

public String toString()
Overrides:
toString in class Object

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

importImports

public void importImports(boolean recursive)
                   throws DOMException
Imports referenced CSSStyleSheets.

Parameters:
recursive - true if the import should be done recursively, false otherwise
Throws:
DOMException


Copyright © 2013. All rights reserved.