You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
364 B
15 lines
364 B
package org.gerweck.scalafx.util
|
|
|
|
import scala.language.implicitConversions
|
|
|
|
import scalafx.beans.property._
|
|
|
|
trait LowPriorityImplicits {
|
|
implicit def scalaBooleanToBooleanProperty(ob: ReadOnlyObjectProperty[Boolean]): ReadOnlyBooleanProperty = {
|
|
val b = BooleanProperty(ob.value)
|
|
ob onChange { (_, oldV, newV) =>
|
|
b.value = newV
|
|
}
|
|
b
|
|
}
|
|
}
|