| Package | Description |
|---|---|
| cz.vutbr.web.css | |
| cz.vutbr.web.csskit | |
| cz.vutbr.web.domassign |
| Modifier and Type | Method and Description |
|---|---|
static MatchCondition |
CSSFactory.getDefaultMatchCondition()
Obtains the default match condition to be used for matching the elements and selector parts.
|
| 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,
MatchCondition matchCond)
Goes through a DOM tree and assigns the CSS declarations to the DOM elements.
|
static StyleMap |
CSSFactory.assignDOM(Document doc,
String encoding,
URL base,
String media,
boolean useInheritance,
MatchCondition matchCond)
This is the same as
CSSFactory.assignDOM(Document, String, URL, MediaSpec, boolean) but only the
media type is provided instead of the complete media specification. |
boolean |
Selector.matches(Element e,
ElementMatcher matcher,
MatchCondition cond)
Matches simple selector against DOM element with an additional condition
|
boolean |
Selector.SelectorPart.matches(Element e,
ElementMatcher matcher,
MatchCondition cond) |
static void |
CSSFactory.registerDefaultMatchCondition(MatchCondition newMatchCondition)
Registers a new default match condition to be used for matching the elements and selector parts.
|
| Modifier and Type | Class and Description |
|---|---|
class |
MatchConditionImpl
A default match condition that matches the LINK (or other) pseudo classes to link elements.
|
class |
MatchConditionOnElements
A match condition for matching the pseudo classes to particular elements.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
SelectorImpl.matches(Element e,
ElementMatcher matcher,
MatchCondition cond) |
boolean |
SelectorImpl.ElementNameImpl.matches(Element e,
ElementMatcher matcher,
MatchCondition cond) |
boolean |
SelectorImpl.ElementClassImpl.matches(Element e,
ElementMatcher matcher,
MatchCondition cond) |
boolean |
SelectorImpl.PseudoPageImpl.matches(Element e,
ElementMatcher matcher,
MatchCondition cond) |
boolean |
SelectorImpl.ElementIDImpl.matches(Element e,
ElementMatcher matcher,
MatchCondition cond) |
boolean |
SelectorImpl.ElementAttributeImpl.matches(Element e,
ElementMatcher matcher,
MatchCondition cond) |
boolean |
SelectorImpl.ElementDOMImpl.matches(Element e,
ElementMatcher matcher,
MatchCondition cond) |
| Modifier and Type | Method and Description |
|---|---|
MatchCondition |
Analyzer.getMatchCondition()
Obtains the match condition to be used for matching the elements and
selector parts.
|
| Modifier and Type | Method and Description |
|---|---|
static NodeData |
AnalyzerUtil.getElementStyle(Element el,
Selector.PseudoDeclaration pseudo,
ElementMatcher matcher,
MatchCondition matchCond,
Analyzer.OrderedRule[] applicableRules) |
static boolean |
AnalyzerUtil.hasPseudoSelector(Analyzer.OrderedRule[] rules,
Element e,
MatchCondition matchCond,
Selector.PseudoDeclaration pd) |
static boolean |
AnalyzerUtil.hasPseudoSelectorForAncestor(Analyzer.OrderedRule[] rules,
Element e,
Element targetAncestor,
ElementMatcher matcher,
MatchCondition matchCond,
Selector.PseudoDeclaration pd) |
protected static boolean |
AnalyzerUtil.matchSelector(CombinedSelector sel,
Element e,
ElementMatcher matcher,
MatchCondition matchCond) |
void |
Analyzer.registerMatchCondition(MatchCondition matchCond)
Registers a new match condition to be used for matching the elements and
selector parts.
|
Copyright © 2018. All rights reserved.