Selectors, along with an array of
CompoundSelectorRelationships indicating the required relationship at each
stage. There must be exactly one less Combinator than
there are selectors.
For example, the parameters [selector1, selector2, selector3]
and [Combinator.CHILD, Combinator.DESCENDANT] will match
a component when all of the following conditions hold:
selector1 > selector2 selector3. The greater-than (>)
between selector1 and selector2 specifies a direct CHILD, whereas the
whitespace between selector2 and selector3 corresponds to
Combinator.DESCENDANT.
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private final List | |
| private final List |
| Access | Constructor and Description |
|---|---|
| public | CompoundSelector(List<SimpleSelector> selectors, List<Combinator> relationships)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | applies(final Styleable styleable)
Implements abstract javafx. Gets whether this |
| public boolean | applies(final Styleable styleable, Set<PseudoClass>[] triggerStates, int depth)
Implements abstract javafx. Gets whether this |
| private boolean | |
| public boolean | equals(Object obj)
Overrides java. Indicates whether some other object is "equal to" this one. |
| pack-priv List | |
| public List | Returns: Immutable List<SimpleSelector>The selectors that make up this compound selector |
| public Set | getStyleClassNames()
Implements abstract javafx. Gets the immutable set of style class names of this Selector. |
| public int | |
| public boolean | stateMatches(final Styleable styleable, Set<PseudoClass> states)
Implements abstract javafx. Determines whether the current state of the |
| private boolean | |
| public String |
| hash | back to summary |
|---|---|
| private int hash | |
| relationships | back to summary |
|---|---|
| private final List<Combinator> relationships | |
| selectors | back to summary |
|---|---|
| private final List<SimpleSelector> selectors | |
| CompoundSelector | back to summary |
|---|---|
| public CompoundSelector(List<SimpleSelector> selectors, List<Combinator> relationships) Creates a | |
| applies | back to summary |
|---|---|
| public boolean applies(final Styleable styleable) Implements abstract javafx. Doc from javafx. Gets whether this
| |
| applies | back to summary |
|---|---|
| public boolean applies(final Styleable styleable, Set<PseudoClass>[] triggerStates, int depth) Implements abstract javafx. Doc from javafx. Gets whether this
| |
| applies | back to summary |
|---|---|
| private boolean applies(final Styleable styleable, final int index, Set<PseudoClass>[] triggerStates, int depth) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| getRelationships | back to summary |
|---|---|
| pack-priv List The relationships between the selectors
| |
| getSelectors | back to summary |
|---|---|
| public List The selectors that make up this compound selector
| |
| getStyleClassNames | back to summary |
|---|---|
| public Set Implements abstract javafx. Doc from javafx. Gets the immutable set of style class names of this Selector.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| stateMatches | back to summary |
|---|---|
| public boolean stateMatches(final Styleable styleable, Set<PseudoClass> states) Implements abstract javafx. Doc from javafx. Determines whether the current state of the
| |
| stateMatches | back to summary |
|---|---|
| private boolean stateMatches(Styleable styleable, Set<PseudoClass> states, int index) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |