|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.steadystate.css.dom.CSSMediaRuleImpl
public class CSSMediaRuleImpl
| 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 | |
|---|---|
CSSMediaRuleImpl(CSSStyleSheetImpl parentStyleSheet,
CSSRule parentRule,
MediaList media)
|
|
| Method Summary | |
|---|---|
void |
deleteRule(int index)
Used to delete a rule from the media block. |
CSSRuleList |
getCssRules()
A list of all CSS rules contained within the media block. |
java.lang.String |
getCssText()
The parsable textual representation of the rule. |
MediaList |
getMedia()
A list of media types for this rule. |
CSSRule |
getParentRule()
If this rule is contained inside another rule (e.g. |
CSSStyleSheet |
getParentStyleSheet()
The style sheet that contains this rule. |
short |
getType()
The type of the rule, as defined above. |
int |
insertRule(java.lang.String rule,
int index)
Used to insert a new rule into the media block. |
void |
setCssText(java.lang.String cssText)
|
void |
setRuleList(CSSRuleListImpl rules)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CSSMediaRuleImpl(CSSStyleSheetImpl parentStyleSheet,
CSSRule parentRule,
MediaList media)
| Method Detail |
|---|
public short getType()
CSSRuleCSSRule interface to the specific
derived interface implied by the type.
getType in interface CSSRulepublic java.lang.String getCssText()
CSSRule
getCssText in interface CSSRule
public void setCssText(java.lang.String cssText)
throws org.w3c.dom.DOMException
setCssText in interface CSSRuleorg.w3c.dom.DOMExceptionpublic CSSStyleSheet getParentStyleSheet()
CSSRule
getParentStyleSheet in interface CSSRulepublic CSSRule getParentRule()
CSSRulenull.
getParentRule in interface CSSRulepublic MediaList getMedia()
CSSMediaRule
getMedia in interface CSSMediaRulepublic CSSRuleList getCssRules()
CSSMediaRule
getCssRules in interface CSSMediaRule
public int insertRule(java.lang.String rule,
int index)
throws org.w3c.dom.DOMException
CSSMediaRule
insertRule in interface CSSMediaRulerule - The parsable text representing the rule. For rule sets
this contains both the selector and the style declaration. For
at-rules, this specifies both the at-identifier and the rule
content.index - The index within the media block's rule collection of the
rule before which to insert the specified rule. If the specified
index is equal to the length of the media blocks's rule collection,
the rule will be added to the end of the media block.
org.w3c.dom.DOMException - HIERARCHY_REQUEST_ERR: Raised if the rule cannot be inserted at the
specified index, e.g., if an @import rule is inserted
after a standard rule set or other at-rule.
public void deleteRule(int index)
throws org.w3c.dom.DOMException
CSSMediaRule
deleteRule in interface CSSMediaRuleindex - The index within the media block's rule collection of the
rule to remove.
org.w3c.dom.DOMException - INDEX_SIZE_ERR: Raised if the specified index does not correspond to
a rule in the media rule list.
public void setRuleList(CSSRuleListImpl rules)
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||