Package com.itextpdf.styledxmlparser.css
Class CssNestedAtRule
java.lang.Object
com.itextpdf.styledxmlparser.css.CssStatement
com.itextpdf.styledxmlparser.css.CssAtRule
com.itextpdf.styledxmlparser.css.CssNestedAtRule
- Direct Known Subclasses:
-
CssFontFaceRule
,CssMarginRule
,CssMediaRule
,CssPageRule
Class to store a nested CSS at-rule Nested at-rules are a subset of nested statements, which can be used as a statement of a style sheet as well as inside of conditional group rules.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionCssNestedAtRule
(String ruleName, String ruleParameters) Creates aCssNestedAtRule
instance with an empty body. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addBodyCssDeclarations
(List<CssDeclaration> cssDeclarations) Adds the body CSS declarations.void
addStatementsToBody
(Collection<CssStatement> statements) Adds CSS statements to the body.void
addStatementToBody
(CssStatement statement) Adds a CSS statement to body.getCssRuleSets
(INode node, MediaDeviceDescription deviceDescription) Gets a list ofCssRuleSet
objects.Gets the list of CSS statements.toString()
Methods inherited from class com.itextpdf.styledxmlparser.css.CssAtRule
getRuleName
-
Field Details
-
body
The body.
-
-
Constructor Details
-
CssNestedAtRule
Creates aCssNestedAtRule
instance with an empty body.- Parameters:
-
ruleName
- the rule name -
ruleParameters
- the rule parameters
-
-
Method Details
-
addStatementToBody
Adds a CSS statement to body.- Parameters:
-
statement
- a CSS statement
-
addStatementsToBody
Adds CSS statements to the body.- Parameters:
-
statements
- a list of CSS statements
-
addBodyCssDeclarations
Adds the body CSS declarations.- Parameters:
-
cssDeclarations
- a list of CSS declarations
-
getCssRuleSets
Description copied from class:CssStatement
Gets a list ofCssRuleSet
objects.- Overrides:
-
getCssRuleSets
in classCssStatement
- Parameters:
-
node
- a node -
deviceDescription
- a media device description - Returns:
- the css rule sets
-
getStatements
Gets the list of CSS statements.- Returns:
- the list of CSS statements
-
toString
-
getRuleParameters
-