carlw
03/29/2017, 6:48 PMedvin
03/29/2017, 6:48 PMnimakro
03/29/2017, 7:21 PMron
03/29/2017, 7:22 PMborboss
03/29/2017, 8:35 PMborboss
03/29/2017, 8:36 PMborboss
03/29/2017, 8:37 PMedvin
03/29/2017, 8:52 PMselectionModel.selectedItemProperty
since it's readonly. You can however use a listener so that whenever model.instrument1
changes, you can select that item in the table - if that's really what you need. It sounds like a weird use case though.borboss
03/29/2017, 8:54 PMedvin
03/29/2017, 9:09 PMedvin
03/29/2017, 9:09 PMedvin
03/29/2017, 9:09 PMthis += vbox
or this += label("Activity")
- just say vbox
and label("Activity")
.edvin
03/29/2017, 9:12 PMtableView.bindSelected(property)
or even tableView.bindSelected(model)
which will bind the selectedItem
of the TableView to the property or even model object supplied.edvin
03/29/2017, 9:13 PMedvin
03/29/2017, 9:15 PMOccupationModel
but it doesn't have a noargs constructor, so that won't work. Injectable objects need to be have a noargs constructor. You can however inject other properties into them if you need to.borboss
03/29/2017, 9:19 PMedvin
03/29/2017, 9:20 PMedvin
03/29/2017, 9:20 PMedvin
03/29/2017, 9:28 PMedvin
03/29/2017, 9:28 PMedvin
03/29/2017, 9:31 PMedvin
03/29/2017, 9:31 PMedvin
03/29/2017, 9:34 PMedvin
03/29/2017, 9:34 PMborboss
03/29/2017, 9:35 PMborboss
03/29/2017, 9:35 PMedvin
03/29/2017, 9:35 PMborboss
03/29/2017, 9:37 PM