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
Milestone

Comments

@scalasolist
Copy link

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 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 as completed Apr 23, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants