Selector (Java SE 10 & JDK 10 ) (original) (raw)
- javafx.css.Selector
Direct Known Subclasses:
[CompoundSelector](../../javafx/css/CompoundSelector.html "class in javafx.css")
,[SimpleSelector](../../javafx/css/SimpleSelector.html "class in javafx.css")
public abstract class Selector
extends Object
Used by CSSRule to determine whether or not the selector applies to a given object.
Since:
9
Constructor Summary
Constructors
Constructor Description Selector() Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods
Modifier and Type Method Description abstract boolean applies(Styleable styleable) abstract boolean applies(Styleable styleable,Set<PseudoClass>[] triggerStates, int bit) abstract Match createMatch() static Selector createSelector(String cssSelector) int getOrdinal() Rule getRule() void setOrdinal(int ordinal) abstract boolean stateMatches(Styleable styleable,Set<PseudoClass> state) Determines whether the current state of the node and its parents matches the pseudo-classes defined (if any) for this selector. protected void writeBinary(DataOutputStream os,StyleConverter.StringStore stringStore) * ### Methods declared in class java.lang.[Object](../../java/lang/Object.html "class in java.lang") `[clone](../../java/lang/Object.html#clone%28%29), [equals](../../java/lang/Object.html#equals%28java.lang.Object%29), [finalize](../../java/lang/Object.html#finalize%28%29), [getClass](../../java/lang/Object.html#getClass%28%29), [hashCode](../../java/lang/Object.html#hashCode%28%29), [notify](../../java/lang/Object.html#notify%28%29), [notifyAll](../../java/lang/Object.html#notifyAll%28%29), [toString](../../java/lang/Object.html#toString%28%29), [wait](../../java/lang/Object.html#wait%28%29), [wait](../../java/lang/Object.html#wait%28long%29), [wait](../../java/lang/Object.html#wait%28long,int%29)`
Constructor Detail
* #### Selector public Selector()
Method Detail
* #### getRule public [Rule](../../javafx/css/Rule.html "class in javafx.css") getRule() * #### setOrdinal public void setOrdinal(int ordinal) * #### getOrdinal public int getOrdinal() * #### createMatch public abstract [Match](../../javafx/css/Match.html "class in javafx.css") createMatch() * #### applies public abstract boolean applies([Styleable](../../javafx/css/Styleable.html "interface in javafx.css") styleable) * #### applies public abstract boolean applies([Styleable](../../javafx/css/Styleable.html "interface in javafx.css") styleable, [Set](../../java/util/Set.html "interface in java.util")<[PseudoClass](../../javafx/css/PseudoClass.html "class in javafx.css")>[] triggerStates, int bit) * #### stateMatches public abstract boolean stateMatches([Styleable](../../javafx/css/Styleable.html "interface in javafx.css") styleable, [Set](../../java/util/Set.html "interface in java.util")<[PseudoClass](../../javafx/css/PseudoClass.html "class in javafx.css")> state) Determines whether the current state of the node and its parents matches the pseudo-classes defined (if any) for this selector. Parameters: `styleable` \- the styleable `state` \- the state Returns: `true` if the current state of the node and its parents matches the pseudo-classes defined (if any) for this selector * #### writeBinary protected void writeBinary([DataOutputStream](../../java/io/DataOutputStream.html "class in java.io") os, [StyleConverter.StringStore](../../javafx/css/StyleConverter.StringStore.html "class in javafx.css") stringStore) throws [IOException](../../java/io/IOException.html "class in java.io") Throws: `[IOException](../../java/io/IOException.html "class in java.io")` * #### createSelector public static [Selector](../../javafx/css/Selector.html "class in javafx.css") createSelector([String](../../java/lang/String.html "class in java.lang") cssSelector)
Report a bug or suggest an enhancement
For further API reference and developer documentation see the Java SE Documentation, which contains more detailed, developer-targeted descriptions with conceptual overviews, definitions of terms, workarounds, and working code examples.
Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries.
Copyright © 1993, 2018, Oracle and/or its affiliates, 500 Oracle Parkway, Redwood Shores, CA 94065 USA.
All rights reserved. Use is subject to license terms and the documentation redistribution policy.