public final class SimpleSelector extends Selector
Constructor and Description |
---|
SimpleSelector(String name,
List<String> styleClasses,
List<String> pseudoClasses,
String id) |
Modifier and Type | Method and Description |
---|---|
boolean |
applies(Styleable styleable) |
boolean |
equals(Object obj) |
String |
getId() |
String |
getName() |
List<String> |
getPseudoclasses() |
List<String> |
getStyleClasses() |
int |
hashCode() |
boolean |
stateMatches(Styleable styleable,
Set<PseudoClass> states)
Determines whether the current state of the node and its parents
matches the pseudo-classes defined (if any) for this selector.
|
String |
toString()
Converts this object to a string.
|
void |
writeBinary(DataOutputStream os,
StringStore stringStore) |
createSelector, getUniversalSelector
public String getName()
public List<String> getStyleClasses()
public String getId()
public List<String> getPseudoclasses()
public boolean stateMatches(Styleable styleable, Set<PseudoClass> states)
Selector
stateMatches
in class Selector
public String toString()
public final void writeBinary(DataOutputStream os, StringStore stringStore) throws IOException
writeBinary
in class Selector
IOException
Copyright © 2020. All rights reserved.