Gabriel95 / scalafx

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

TableView adaptation for scala 2.10.0.M7 #7

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

1. Build scalafx for new scala.

For doing so you are required to replace one string in Timeline:

    -    this(new jfxa.Timeline(targetFramerate, keyFrames.map(_.delegate): _*))
    +    this(new jfxa.Timeline(targetFramerate, keyFrames.map { kf: KeyFrame => kf.delegate } : _*))

2. Reproduce error: try to use new TableView[Model]

You will got this error:

    [error]  found   : [S]javafx.scene.control.TableView[Nothing]
    [error]  required: javafx.scene.control.TableView[valera.analysis.Main.Model]

3. Remove error with minor change in scalafx.scene.control.TableView

    -class TableView[S](override val delegate: jfxsc.TableView[S] = new jfxsc.TableView)
    +class TableView[S](override val delegate: jfxsc.TableView[S] = new jfxsc.TableView[S])

Original issue reported on code.google.com by ayva...@gmail.com on 27 Sep 2012 at 1:45

GoogleCodeExporter commented 8 years ago
The Timeline was already fixed in a somewhat different manner.

The change for TableView has been integrated.

Original comment by Alain.Fa...@gmail.com on 1 Dec 2012 at 12:57