Gabriel95 / scalafx

Automatically exported from code.google.com/p/scalafx
Other
0 stars 0 forks source link

ObjectProperty should accept T <: AnyVal type parameter #36

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Currently ScalaFX's ObjectProperty has to have type parameter that is a subtype 
of AnyRef. Subtypes of AnyVal, like Int or Double, cannot be type parameters 
for ObjectProperty. This is causing problems when interacting with JavaFX code. 
For instance, jfxtras.org has a quite useful ListSpinner class that can have 
Int values. It's value property is ObjectProperty[Int]. Currently it is not 
possible to create ScalaFX ObjectProperty[Int], so there is no way to bind it 
to ListSpinner[Int] value property. 

ScalaFX ObjectProperty should accept AnyVal type parameters including Int and 
Double.

Original issue reported on code.google.com by jpsacha on 1 Feb 2013 at 5:12

GoogleCodeExporter commented 8 years ago
The Issue 36 is fixed with tests to verify:
http://code.google.com/p/scalafx/source/detail?r=8a156cee3775c6df23797d13eef641e
7078e1e36

Original comment by jpsacha on 1 Feb 2013 at 8:16