carlw
01/10/2017, 12:54 AMcarlw
01/10/2017, 12:55 AMron
01/10/2017, 8:18 AMedvin
01/10/2017, 8:29 AMron
01/10/2017, 8:29 AMron
01/10/2017, 8:30 AMedvin
01/10/2017, 8:32 AMonEditCommit
. I have configured some columns using the TextFieldTableCell.forTableColumn()
call to make them editable. When I edit the textfield and hit enter, the changes are flushed back into the underlying domain object. However, If I configure an onEditCommit
handler for the tablecolumn and do nothing in that handler, my data is not changed anymore. It seems like I inherit the responsibility to update my data if I override onEditCommit
, is that correct`? I just want a listener to fire when a commit is performed, I don't want to manually put the data back into my domain object. @carlw I bet you've blogged about this once or twice? 🙂edvin
01/10/2017, 8:32 AMonEditCommit
but I don't know why I inherit this responsibility when I configure a commit listener)edvin
01/10/2017, 8:38 AMron
01/10/2017, 8:38 AMron
01/10/2017, 8:38 AMron
01/10/2017, 8:38 AMron
01/10/2017, 8:39 AMedvin
01/10/2017, 8:39 AMron
01/10/2017, 8:40 AMedvin
01/10/2017, 8:40 AMgtnarg
01/10/2017, 8:40 AMonEditCommit
behaviouredvin
01/10/2017, 8:41 AMsuper()
or perform the usual operation without spelling it out explicitly?edvin
01/10/2017, 8:41 AMedvin
01/10/2017, 8:41 AMonEditCommit
, those two lines are performed automatically for me. I just want to do the last line, calling må controller function.gtnarg
01/10/2017, 8:42 AMgtnarg
01/10/2017, 8:43 AMedvin
01/10/2017, 8:45 AMCellEditFeatures
object like they do elsewhere.gtnarg
01/10/2017, 8:47 AMedvin
01/10/2017, 8:47 AMgtnarg
01/10/2017, 8:48 AMgtnarg
01/10/2017, 8:48 AMedvin
01/10/2017, 8:52 AMEDIT_COMMIT_EVENT
seems to be private in JavaFX 8edvin
01/10/2017, 8:53 AMTableColumn.editCommitEvent()
it seems. Weird choice.