onCloseRequested
fun onCloseRequested(handlerCombination: HandlerCombination = HandlerCombination.AFTER, block: (event: ActionEvent) -> Unit)
This event is fired when requestClose is called or the tab's close button is pressed. If the event is consumed, then the tab will NOT close.