Example usage for javafx.scene.control MenuItem onActionProperty

List of usage examples for javafx.scene.control MenuItem onActionProperty

Introduction

In this page you can find the example usage for javafx.scene.control MenuItem onActionProperty.

Prototype

public final ObjectProperty<EventHandler<ActionEvent>> onActionProperty() 

Source Link

Usage

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*/
}