case class StyleSelector(predicates: Set[StylePredicate] = Set(), parent: Option[ParentSelector] = None, order: Int = 0) extends Product with Serializable
Responsible for determining whether a style declaration should be applied to a target element, basing its decision on a set of predicates.
- predicates
the set of predicates that need to hold for this selector to be applicable to a target element
- parent
the optional parent selector
- order
the index of the style declaration this selector belongs to
- Alphabetic
- By Inheritance
- StyleSelector
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
StyleSelector(predicates: Set[StylePredicate] = Set(), parent: Option[ParentSelector] = None, order: Int = 0)
- predicates
the set of predicates that need to hold for this selector to be applicable to a target element
- parent
the optional parent selector
- order
the index of the style declaration this selector belongs to
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
matches(target: Element, parents: Seq[Element]): Boolean
Indicates whether this selector applies to the specified target element.
Indicates whether this selector applies to the specified target element.
- target
the target element to apply this selector to
- parents
the parents of the specified target element, which also need to match in case this selector has parent selectors.
- returns
true if this selector matches the target element
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- val order: Int
- val parent: Option[ParentSelector]
- val predicates: Set[StylePredicate]
-
def
specificity: Specificity
The specificity of this selector, calculated from the specificity of its predicates and the order.
The specificity of this selector, calculated from the specificity of its predicates and the order.
Used to calculate the precedence if multiple selectors apply to the same target element.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated