Package org.loboevolution.css
Interface CSSMediaRule
- All Superinterfaces:
CSSRule
- All Known Implementing Classes:
CSSMediaRuleImpl
-
Field Summary
Fields inherited from interface org.loboevolution.css.CSSRule
CHARSET_RULE, FONT_FACE_RULE, IMPORT_RULE, MEDIA_RULE, PAGE_RULE, STYLE_RULE, UNKNOWN_RULE
-
Method Summary
Modifier and TypeMethodDescriptionvoid
deleteRule
(Integer index) deleteRule.getCssRules.getMedia()
getMedia.void
insertRule
(String rule) insertRule.void
insertRule
(String rule, Integer index) insertRule.void
setMedia.Methods inherited from interface org.loboevolution.css.CSSRule
getCssText, getParentRule, getParentStyleSheet, getType
-
Method Details
-
getMedia
MediaList getMedia()getMedia.
- Returns:
- a
MediaList
object representing the media queries for this rule.
-
setMedia
setMedia.
- Parameters:
media
- aString
object specifying the media query text.
-
getCssRules
CSSRuleList getCssRules()getCssRules.
- Returns:
- a
CSSRuleList
object containing all CSS rules in this media rule.
-
insertRule
insertRule.
Adds a new rule to the end of this media rule's CSS rule list.- Parameters:
rule
- aString
object containing the CSS rule text to insert.
-
insertRule
insertRule.
Adds a new rule at the specified position in this media rule's CSS rule list. -
deleteRule
deleteRule.
Removes a rule at the specified position from this media rule's CSS rule list.- Parameters:
index
- anInteger
specifying the position of the rule to remove.
-