Class CssMediaRule
java.lang.Object
com.itextpdf.styledxmlparser.css.CssStatement
com.itextpdf.styledxmlparser.css.CssAtRule
com.itextpdf.styledxmlparser.css.CssNestedAtRule
com.itextpdf.styledxmlparser.css.media.CssMediaRule
The
CssNestedAtRule
implementation for media rules.
-
Field Summary
Fields inherited from class com.itextpdf.styledxmlparser.css.CssNestedAtRule
body
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetCssRuleSets
(INode element, MediaDeviceDescription deviceDescription) Gets a list ofCssRuleSet
objects.boolean
matchMediaDevice
(MediaDeviceDescription deviceDescription) Tries to match a media device.Methods inherited from class com.itextpdf.styledxmlparser.css.CssNestedAtRule
addBodyCssDeclarations, addStatementsToBody, addStatementToBody, getRuleParameters, getStatements, toString
Methods inherited from class com.itextpdf.styledxmlparser.css.CssAtRule
getRuleName
-
Constructor Details
-
CssMediaRule
Creates aCssMediaRule
.- Parameters:
-
ruleParameters
- the rule parameters
-
-
Method Details
-
getCssRuleSets
Description copied from class:CssStatement
Gets a list ofCssRuleSet
objects.- Overrides:
-
getCssRuleSets
in classCssNestedAtRule
- Parameters:
-
element
- a node -
deviceDescription
- a media device description - Returns:
- the css rule sets
-
matchMediaDevice
Tries to match a media device.- Parameters:
-
deviceDescription
- the device description - Returns:
- true, if successful
-