List of usage examples for javafx.scene.control Tab getOnClosed
public final EventHandler<Event> getOnClosed()
From source file:org.beryx.viewreka.fxapp.Viewreka.java
public void closeTab() { Tab tab = projectTabPane.getSelectionModel().getSelectedItem(); if (tab != null) { EventHandler<Event> handler = tab.getOnClosed(); if (handler != null) { handler.handle(null);//from w ww . j a v a 2 s . c om } projectTabPane.getTabs().remove(tab); } }