org.kde.koala

Class CSSRule

public class CSSRule extends Object implements 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.

UNKNOWN: The CSSRule interface is the abstract base interface for any type of CSS Constructor Summary protected CSSRule(Class dummy)

CSSRule()
CSSRule(CSSRule other)
Method Summary
StringcssText()
The parsable textual representation of the rule.
booleanisNull()
not part of the DOM
CSSRuleparentRule()
If this rule is contained inside another rule (e.g. a style rule inside an \@media block), this is the containing rule.
CSSStyleSheetparentStyleSheet()
The style sheet that contains this rule.
voidsetCssText(String arg1)
see cssText HIERARCHY_REQUEST_ERR: Raised if the rule cannot be inserted at this point in the style sheet.
shorttype()
The type of the rule, as defined above.

Constructor Detail

CSSRule

protected CSSRule(Class dummy)

CSSRule

public CSSRule()

CSSRule

public CSSRule(CSSRule other)

Method Detail

cssText

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

UNKNOWN: The parsable textual representation of the rule.

isNull

public boolean isNull()
not part of the DOM

UNKNOWN:

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 .

UNKNOWN: If this rule is contained inside another rule (e.

parentStyleSheet

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

UNKNOWN: The style sheet that contains this rule.

setCssText

public void setCssText(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.

UNKNOWN: see cssText

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 .

UNKNOWN: The type of the rule, as defined above.