be.doeraene.webcomponents.ui5.configkeys.ColourScheme.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of web-components-ui5_sjs1_3 Show documentation
Show all versions of web-components-ui5_sjs1_3 Show documentation
Laminar bindings for the web-component library UI5 from SAP
package be.doeraene.webcomponents.ui5.configkeys
import scala.compiletime.ops.int.<=
sealed trait ColourScheme {
def value: String = toString.tail
}
object ColourScheme extends EnumerationString[ColourScheme] {
case object _1 extends ColourScheme
case object _2 extends ColourScheme
case object _3 extends ColourScheme
case object _4 extends ColourScheme
case object _5 extends ColourScheme
case object _6 extends ColourScheme
case object _7 extends ColourScheme
case object _8 extends ColourScheme
case object _9 extends ColourScheme
case object _10 extends ColourScheme
inline def fromInt[N <: Int](n: N): ColourScheme =
inline n match {
case 1 => _1
case 2 => _2
case 3 => _3
case 4 => _4
case 5 => _5
case 6 => _6
case 7 => _7
case 8 => _8
case 9 => _9
case 10 => _10
}
override val allValues: List[ColourScheme] = _1 :: _2 :: _3 :: _4 :: _5 :: _6 :: _7 :: _8 :: _9 :: _10 :: Nil
override def valueOf(value: ColourScheme): String = value.value
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy