Package org.loboevolution.html.js.css
Class CSSMediaRuleImpl
java.lang.Object
org.loboevolution.html.js.css.CSSRuleImpl
org.loboevolution.html.js.css.AbstractCSSStyleRule
org.loboevolution.html.js.css.CSSMediaRuleImpl
- All Implemented Interfaces:
CSSMediaRule
,CSSRule
,CSSStyleRule
CSSMediaRuleImpl class.
-
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
-
Constructor Summary
Constructors -
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.toString()
Methods inherited from class org.loboevolution.html.js.css.AbstractCSSStyleRule
getSelectorText, getStyle
Methods inherited from class org.loboevolution.html.js.css.CSSRuleImpl
getCssText, getParentRule, getParentStyleSheet, getType
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.loboevolution.css.CSSRule
getCssText, getParentRule, getParentStyleSheet, getType
-
Constructor Details
-
CSSMediaRuleImpl
-
-
Method Details
-
getMedia
Description copied from interface:CSSMediaRule
getMedia.
- Specified by:
getMedia
in interfaceCSSMediaRule
- Returns:
- a
MediaList
object representing the media queries for this rule.
-
setMedia
Description copied from interface:CSSMediaRule
setMedia.
- Specified by:
setMedia
in interfaceCSSMediaRule
- Parameters:
media
- aString
object specifying the media query text.
-
getCssRules
Description copied from interface:CSSMediaRule
getCssRules.
- Specified by:
getCssRules
in interfaceCSSMediaRule
- Returns:
- a
CSSRuleList
object containing all CSS rules in this media rule.
-
insertRule
Description copied from interface:CSSMediaRule
insertRule.
Adds a new rule to the end of this media rule's CSS rule list.- Specified by:
insertRule
in interfaceCSSMediaRule
- Parameters:
rule
- aString
object containing the CSS rule text to insert.
-
insertRule
Description copied from interface:CSSMediaRule
insertRule.
Adds a new rule at the specified position in this media rule's CSS rule list.- Specified by:
insertRule
in interfaceCSSMediaRule
- Parameters:
rule
- aString
object containing the CSS rule text to insert.index
- anInteger
specifying the position at which to insert the rule.
-
deleteRule
Description copied from interface:CSSMediaRule
deleteRule.
Removes a rule at the specified position from this media rule's CSS rule list.- Specified by:
deleteRule
in interfaceCSSMediaRule
- Parameters:
index
- anInteger
specifying the position of the rule to remove.
-
toString
- Overrides:
toString
in classCSSRuleImpl
-