thomasnield
09/02/2016, 2:52 AMthomasnield
09/02/2016, 2:56 AMObservableList
thomasnield
09/02/2016, 2:56 AMgetSortOrder().clear()
and then reset the "natural" order of the backing ObservableList
.thomasnield
09/02/2016, 2:56 AMjonathan
09/02/2016, 2:59 AMjonathan
09/02/2016, 3:00 AMjonathan
09/02/2016, 3:00 AMjonathan
09/02/2016, 3:01 AMjonathan
09/02/2016, 3:01 AMthomasnield
09/02/2016, 3:03 AMjonathan
09/02/2016, 3:03 AMthomasnield
09/02/2016, 3:03 AMedvin
09/02/2016, 6:59 AMedvin
09/02/2016, 7:01 AMedvin
09/02/2016, 7:16 AMedvin
09/02/2016, 7:35 AMedvin
09/02/2016, 7:35 AMedvin
09/02/2016, 7:37 AMvalue
is not an ObservableValue<*>
it is wrapped in a SimpleObjectProperty
. Since you have access to the TableColumn
as this
you can do whatever you want in there. I think this should cover your "ad hoc" use case @thomasnield 🙂ron
09/02/2016, 7:57 AMvalue { it.value.name }
concept, let the developer decide if he wants to make that value observable or notron
09/02/2016, 7:59 AMcolumn("name") { value = { it.value.name}}
edvin
09/02/2016, 7:59 AMit.value
is derived from the TableView type parameter. The trade off is that the second type parameter to TableColumn will be Any?
. It is very rarely needed, and if you do, you can define your column as column<Customer, String>("Name") { it.value.nameProperty }
edvin
09/02/2016, 7:59 AMron
09/02/2016, 8:00 AMedvin
09/02/2016, 8:04 AMImproved TableView.rowExpander with lessons learned from the ControlsFX port
. Having the main JavaFX guy review your code is pretty valuable 🙂 We should do this more often... haha 🙂ron
09/02/2016, 8:05 AMron
09/02/2016, 8:06 AMedvin
09/02/2016, 8:06 AMron
09/02/2016, 8:06 AMasync { } ui { }
ron
09/02/2016, 8:06 AMron
09/02/2016, 8:06 AM