| Package | Description |
|---|---|
| cz.vutbr.web.css | |
| cz.vutbr.web.domassign |
| Modifier and Type | Class and Description |
|---|---|
class |
MediaSpecAll
A special case of media specification that matches all media queries.
|
class |
MediaSpecNone
A specific case of media specification that does not match any media query or expression.
|
class |
MediaSpecType
A special case of media specification that matches all media queries with the given media type
regardless on the remaining media features.
|
| Modifier and Type | Method and Description |
|---|---|
static MediaSpec |
CSSFactory.getAutoImportMedia()
Obtains the media specification used for automatical style import.
|
| Modifier and Type | Method and Description |
|---|---|
static StyleMap |
CSSFactory.assignDOM(Document doc,
String encoding,
NetworkProcessor network,
URL base,
MediaSpec media,
boolean useInheritance,
MatchCondition matchCond)
This is the same as
CSSFactory.assignDOM(Document, String, URL, MediaSpec, boolean)
with the possibility of specifying a custom network processor for obtaining data from URL
resources. |
static StyleMap |
CSSFactory.assignDOM(Document doc,
String encoding,
URL base,
MediaSpec media,
boolean useInheritance)
Goes through a DOM tree and assigns the CSS declarations to the DOM elements.
|
static StyleMap |
CSSFactory.assignDOM(Document doc,
String encoding,
URL base,
MediaSpec media,
boolean useInheritance,
MatchCondition matchCond)
Goes through a DOM tree and assigns the CSS declarations to the DOM elements.
|
static StyleSheet |
CSSFactory.getUsedStyles(Document doc,
String encoding,
URL base,
MediaSpec media)
This is the same as
CSSFactory.getUsedStyles(Document, String, URL, MediaSpec) with
the possibility of specifying a custom network processor. |
static StyleSheet |
CSSFactory.getUsedStyles(Document doc,
String encoding,
URL base,
MediaSpec media,
NetworkProcessor network)
Loads all the style sheets used from the specified DOM tree.
|
static void |
CSSFactory.setAutoImportMedia(MediaSpec autoImportMedia)
Sets the media specification used for automatical style import.
|
| Modifier and Type | Method and Description |
|---|---|
protected DeclarationMap |
Analyzer.assingDeclarationsToDOM(Document doc,
MediaSpec media,
boolean inherit)
Creates map of declarations assigned to each element of a DOM tree
|
protected void |
Analyzer.classifyAllSheets(MediaSpec mediaspec)
Classifies the rules in all the style sheets.
|
StyleMap |
Analyzer.evaluateDOM(Document doc,
MediaSpec media,
boolean inherit)
Evaluates CSS properties of DOM tree
|
static Analyzer.OrderedRule[] |
AnalyzerUtil.getApplicableRules(List<StyleSheet> sheets,
Element element,
MediaSpec mediaspec)
Returns all applicable rules for an element
|
static Analyzer.Holder |
AnalyzerUtil.getClassifiedRules(List<StyleSheet> sheets,
MediaSpec mediaspec) |
NodeData |
DirectAnalyzer.getElementStyle(Element el,
Selector.PseudoDeclaration pseudo,
MediaSpec media)
Computes the style of an element with an eventual pseudo element for the given media.
|
Copyright © 2018. All rights reserved.