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 selectordeclarations - the CSS declarationspublic CssRuleSet(ICssSelector selector, List<CssDeclaration> normalDeclarations, List<CssDeclaration> importantDeclarations)
public List<CssRuleSet> getCssRuleSets(INode element, MediaDeviceDescription deviceDescription)
CssStatementCssRuleSet objects.getCssRuleSets in class CssStatementelement - a nodedeviceDescription - a media device descriptionpublic ICssSelector getSelector()
public List<CssDeclaration> getNormalDeclarations()
public List<CssDeclaration> getImportantDeclarations()
Copyright © 1998–2024 Apryse Group NV. All rights reserved.