Example usage for javafx.scene.layout Pane getId

List of usage examples for javafx.scene.layout Pane getId

Introduction

In this page you can find the example usage for javafx.scene.layout Pane getId.

Prototype

public final String getId() 

Source Link

Document

The id of this Node .

Usage

From source file:sudoku.controller.ViewController.java

public void attachEventHandlers(ArrayList<Pane> cells) {
    for (Pane cell : cells) {
        cell.setOnMouseClicked(e -> {
            System.out.println(cell.getId());
        });/*from w  w  w. ja  v a 2 s. c o m*/
    }
}