Example usage for javafx.scene Node fireEvent

List of usage examples for javafx.scene Node fireEvent

Introduction

In this page you can find the example usage for javafx.scene Node fireEvent.

Prototype

public final void fireEvent(Event event) 

Source Link

Document

Fires the specified event.

Usage

From source file:de.micromata.mgc.javafx.FXEvents.java

public void fireEvent(Event event) {
    for (List<Node> nodes : listeners.values()) {
        for (Node node : nodes) {
            node.fireEvent(event);
            if (event.isConsumed() == true) {
                break;
            }//from w w w  .j  av a 2s .  c  o  m
        }
    }
}