public class CssRuleSet extends CssStatement
Constructor and Description |
---|
CssRuleSet(ICssSelector selector, List<CssDeclaration> declarations)
Creates a new CssRuleSet from selector and raw list of declarations.
|
CssRuleSet(ICssSelector selector, List<CssDeclaration> normalDeclarations, List<CssDeclaration> importantDeclarations) |
Modifier and Type | Method and Description |
---|---|
List<CssRuleSet> |
getCssRuleSets(INode element, MediaDeviceDescription deviceDescription)
Gets a list of CssRuleSet objects.
|
List<CssDeclaration> |
getImportantDeclarations()
Gets the important CSS declarations.
|
List<CssDeclaration> |
getNormalDeclarations()
Gets the normal CSS declarations.
|
ICssSelector |
getSelector()
Gets the CSS selector.
|
String |
toString() |
public CssRuleSet(ICssSelector selector, List<CssDeclaration> declarations)
CssRuleSet
from selector and raw list of declarations. The declarations are split into normal and important under the hood. To construct the CssRuleSet
instance from normal and important declarations, see CssRuleSet(ICssSelector, List, List)
selector
- the CSS selector
declarations
- the CSS declarations
public CssRuleSet(ICssSelector selector, List<CssDeclaration> normalDeclarations, List<CssDeclaration> importantDeclarations)
public List<CssRuleSet> getCssRuleSets(INode element, MediaDeviceDescription deviceDescription)
CssStatement
CssRuleSet
objects.
getCssRuleSets
in class CssStatement
element
- a node
deviceDescription
- a media device description
public ICssSelector getSelector()
public List<CssDeclaration> getNormalDeclarations()
public List<CssDeclaration> getImportantDeclarations()
Copyright © 1998–2019 iText Group NV. All rights reserved.