List of usage examples for javafx.scene.control MenuItem onActionProperty
public final ObjectProperty<EventHandler<ActionEvent>> onActionProperty()
From source file:com.ggvaidya.scinames.dataset.BinomialChangesSceneController.java
private MenuItem createMenuItem(String name, EventHandler<ActionEvent> handler) { MenuItem mi = new MenuItem(name); mi.onActionProperty().set(handler); return mi;/*from w w w . j a v a 2 s . c o m*/ }