public interface Selector
| Modifier and Type | Method and Description | 
|---|---|
| boolean | appliesToWidget(Widget widget)Checks whether or not this selector applies to the given widget. | 
| int | getSpecificity()Returns the specificity of this selector. | 
boolean appliesToWidget(Widget widget)
widget - the widget to test.true if this selectors applies to the given widget, false otherwise.int getSpecificity()
The specificity allows to determine in which order the rules of a stylesheet should be applied.
A specificity is composed of four numbers (defined by CSS2 specification):
SelectorHelper provides a method to
 compute the specificity of a selector.