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
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCssNestedAtRule(String ruleName, String ruleParameters) Creates aCssNestedAtRuleinstance with an empty body. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBodyCssDeclarations(List<CssDeclaration> cssDeclarations) Adds the body CSS declarations.voidaddStatementsToBody(Collection<CssStatement> statements) Adds CSS statements to the body.voidaddStatementToBody(CssStatement statement) Adds a CSS statement to body.getCssRuleSets(INode node, MediaDeviceDescription deviceDescription) Gets a list ofCssRuleSetobjects.Gets the rule parameters.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 aCssNestedAtRuleinstance 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:CssStatementGets a list ofCssRuleSetobjects.- Overrides:
-
getCssRuleSetsin 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
Gets the rule parameters.- Returns:
- the rule parameters
-