Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TableView.columnResizePolicy does not accept CONSTRAINED_RESIZE_POLICY #189

Closed
scalasolist opened this issue Apr 19, 2015 · 1 comment
Closed
Labels
Milestone

Comments

@scalasolist
Copy link

@scalasolist scalasolist commented Apr 19, 2015

TableView has a scalafx wrapper. But javafx counterpart has static member CONSTRAINED_RESIZE_POLICY which is missing in the corresponding scalafx companion object.

So it is impossible to assign javafx.TableView.CONSTRAINED_RESIZE_POLICY to the scalafx.TableView.columnResizePolicy

[error]  type mismatch:
[error]  found   : javafx.util.Callback[javafx.scene.control.TableView.ResizeFeatures[_],java.lang.Boolean]
[error]  required: scalafx.scene.control.TableView.ResizeFeatures[GroupForm.this.Elem] => scala.Boolean

There is no explicit CONSTRAINED_RESIZE_POLICY declaration inside the TableView object. And there is no implicit transformation for the Callback type

@jpsacha
Copy link
Member

@jpsacha jpsacha commented Apr 23, 2015

I added support for predefined resize policies to the most recent 8.0.40-R9-NAPSHOT. You can do it now using code like this:

table1.columnResizePolicy = TableView.ConstrainedResizePolicy

There is also a complete example in the new TableViewColumnResizePolicyDemo.

@jpsacha jpsacha closed this Apr 23, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants