public class MatchConditionImpl extends Object implements MatchCondition
| Constructor and Description |
|---|
MatchConditionImpl()
Creates the fefault condition that matches the LINK pseudo class to links.
|
MatchConditionImpl(Selector.PseudoDeclaration pseudoClass)
Creates the fefault condition that matches the given pseudo class to links.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isSatisfied(Element e,
Selector.SelectorPart selpart)
Checks whether the condition is satisfied for the given element and selector part.
|
void |
setPseudoClass(Selector.PseudoDeclaration pseudoClass)
Sets the pseudo class that is matched to links.
|
public MatchConditionImpl()
public MatchConditionImpl(Selector.PseudoDeclaration pseudoClass)
pseudoClass - the pseudoClass to be matched to linkspublic void setPseudoClass(Selector.PseudoDeclaration pseudoClass)
pseudoClass - the pseudoClass to be matched to linkspublic boolean isSatisfied(Element e, Selector.SelectorPart selpart)
MatchConditionisSatisfied in interface MatchConditione - The element to be tested.selpart - The selector part.true when the condition is satisfiedCopyright © 2014. All rights reserved.