case class StyleDeclaration(selector: StyleSelector, styles: Map[String, String]) extends Product with Serializable
Represents a single style declaration.
- selector
the selector to determine which elements this declaration applies to
- styles
the styles themselves in a map representing the names and values of each style
- Alphabetic
- By Inheritance
- StyleDeclaration
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
StyleDeclaration(selector: StyleSelector, styles: Map[String, String])
- selector
the selector to determine which elements this declaration applies to
- styles
the styles themselves in a map representing the names and values of each style
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
-
def
appliesTo(element: Element, parents: Seq[Element]): Boolean
Indicates whether this style declaration applies to the specified target element.
Indicates whether this style declaration applies to the specified target element.
- element
the target element to apply the selector of this style declaration to
- parents
the parents of the specified target element, which also need to match in case the selector of this declaration has parent selectors.
- returns
true if this style declaration applies to the target element
-
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()
-
def
increaseOrderBy(amount: Int): StyleDeclaration
Returns a new style declaration with the order parameter in its Specificity property increased by the specified amount.
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
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 selector: StyleSelector
- val styles: Map[String, String]
-
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