org.kde.koala
Class CSSRule

java.lang.Object
  extended by org.kde.koala.CSSRule
All Implemented Interfaces:
org.kde.qt.QtSupport
Direct Known Subclasses:
CSSCharsetRule, CSSFontFaceRule, CSSImportRule, CSSMediaRule, CSSPageRule, CSSStyleRule, CSSUnknownRule

public class CSSRule
extends java.lang.Object
implements org.kde.qt.QtSupport

The CSSRule interface is the abstract base interface for any type of CSS statement . This includes both rule sets and at-rules . An implementation is expected to preserve all rules specified in a CSS style sheet, even if it is not recognized. Unrecognized rules are represented using the CSSUnknownRule interface.


Constructor Summary
  CSSRule()
           
protected CSSRule(java.lang.Class dummy)
           
  CSSRule(CSSRule other)
           
 
Method Summary
 java.lang.String cssText()
          The parsable textual representation of the rule.
 boolean isNull()
          not part of the DOM
 CSSRule parentRule()
          If this rule is contained inside another rule (e.g.
 CSSStyleSheet parentStyleSheet()
          The style sheet that contains this rule.
 void setCssText(java.lang.String arg1)
          see cssText HIERARCHY_REQUEST_ERR: Raised if the rule cannot be inserted at this point in the style sheet.
 short type()
          The type of the rule, as defined above.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CSSRule

protected CSSRule(java.lang.Class dummy)

CSSRule

public CSSRule()

CSSRule

public CSSRule(CSSRule other)
Method Detail

type

public short type()
The type of the rule, as defined above. The expectation is that binding-specific casting methods can be used to cast down from an instance of the CSSRule interface to the specific derived interface implied by the type .


cssText

public java.lang.String cssText()
The parsable textual representation of the rule. This reflects the current state of the rule and not its initial value.


setCssText

public void setCssText(java.lang.String arg1)
see cssText HIERARCHY_REQUEST_ERR: Raised if the rule cannot be inserted at this point in the style sheet. NO_MODIFICATION_ALLOWED_ERR: Raised if this style sheet is readonly. INVALID_MODIFICATION_ERR: Raised if the specified CSS string value represents a different type of rule than the current one.


parentStyleSheet

public CSSStyleSheet parentStyleSheet()
The style sheet that contains this rule.


parentRule

public CSSRule parentRule()
If this rule is contained inside another rule (e.g. a style rule inside an \@media block), this is the containing rule. If this rule is not nested inside any other rules, this returns null .


isNull

public boolean isNull()
not part of the DOM