Top Fields Constructors Methods
com.sun.webkit.dom

public Class CSSMediaRuleImpl

extends CSSRuleImpl
implements CSSMediaRule
Class Inheritance
All Implemented Interfaces
org.w3c.dom.css.CSSMediaRule, org.w3c.dom.css.CSSRule
Imports
org.w3c.dom.DOMException, org.w3c.dom.css.CSSMediaRule, .CSSRuleList, org.w3c.dom.stylesheets.MediaList

Field Summary

Inherited from com.sun.webkit.dom.CSSRuleImpl:
CHARSET_RULEFONT_FACE_RULEIMPORT_RULEKEYFRAME_RULEKEYFRAMES_RULEMEDIA_RULEPAGE_RULESTYLE_RULESUPPORTS_RULEUNKNOWN_RULEWEBKIT_KEYFRAME_RULEWEBKIT_KEYFRAMES_RULEWEBKIT_REGION_RULE

Constructor Summary

AccessConstructor and Description
pack-priv
CSSMediaRuleImpl(long peer)

Method Summary

Modifier and TypeMethod and Description
public void
deleteRule(int
The index within the media block's rule collection of the rule to remove.
index
)

Implements org.w3c.dom.css.CSSMediaRule.deleteRule.

Used to delete a rule from the media block.

pack-priv static native void
deleteRuleImpl(long peer, int index)

public CSSRuleList
getCssRules()

Implements org.w3c.dom.css.CSSMediaRule.getCssRules.

A list of all CSS rules contained within the media block.

pack-priv static native long
getCssRulesImpl(long peer)

pack-priv static CSSMediaRule
public MediaList
getMedia()

Implements org.w3c.dom.css.CSSMediaRule.getMedia.

A list of media types for this rule.

pack-priv static native long
getMediaImpl(long peer)

public int
insertRule(String
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.
rule
,
int
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.
index
)

Implements org.w3c.dom.css.CSSMediaRule.insertRule.

Used to insert a new rule into the media block.

pack-priv static native int
insertRuleImpl(long peer, String rule, int index)

Inherited from com.sun.webkit.dom.CSSRuleImpl:
createequalsgetCssTextgetCssTextImplgetParentRulegetParentRuleImplgetParentStyleSheetgetParentStyleSheetImplgetPeergetPeergetTypegetTypeImplhashCodesetCssTextsetCssTextImpl

Constructor Detail

CSSMediaRuleImplback to summary
pack-priv CSSMediaRuleImpl(long peer)

Method Detail

deleteRuleback to summary
public void deleteRule(int index) throws DOMException

Implements org.w3c.dom.css.CSSMediaRule.deleteRule.

Doc from org.w3c.dom.css.CSSMediaRule.deleteRule.

Used to delete a rule from the media block.

Parameters
index:int

The index within the media block's rule collection of the rule to remove.

Exceptions
DOMException:
INDEX_SIZE_ERR: Raised if the specified index does not correspond to a rule in the media rule list.
NO_MODIFICATION_ALLOWED_ERR: Raised if this media rule is readonly.
deleteRuleImplback to summary
pack-priv static native void deleteRuleImpl(long peer, int index)
getCssRulesback to summary
public CSSRuleList getCssRules()

Implements org.w3c.dom.css.CSSMediaRule.getCssRules.

Doc from org.w3c.dom.css.CSSMediaRule.getCssRules.

A list of all CSS rules contained within the media block.

getCssRulesImplback to summary
pack-priv static native long getCssRulesImpl(long peer)
getImplback to summary
pack-priv static CSSMediaRule getImpl(long peer)

Hides com.sun.webkit.dom.CSSRuleImpl.getImpl.

getMediaback to summary
public MediaList getMedia()

Implements org.w3c.dom.css.CSSMediaRule.getMedia.

Doc from org.w3c.dom.css.CSSMediaRule.getMedia.

A list of media types for this rule.

getMediaImplback to summary
pack-priv static native long getMediaImpl(long peer)
insertRuleback to summary
public int insertRule(String rule, int index) throws DOMException

Implements org.w3c.dom.css.CSSMediaRule.insertRule.

Doc from org.w3c.dom.css.CSSMediaRule.insertRule.

Used to insert a new rule into the media block.

Parameters
rule:String

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:int

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.

Returns:int

The index within the media block's rule collection of the newly inserted rule.

Exceptions
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.
INDEX_SIZE_ERR: Raised if the specified index is not a valid insertion point.
NO_MODIFICATION_ALLOWED_ERR: Raised if this media rule is readonly.
SYNTAX_ERR: Raised if the specified rule has a syntax error and is unparsable.
insertRuleImplback to summary
pack-priv static native int insertRuleImpl(long peer, String rule, int index)