Example usage for javafx.scene.control Hyperlink textProperty

List of usage examples for javafx.scene.control Hyperlink textProperty

Introduction

In this page you can find the example usage for javafx.scene.control Hyperlink textProperty.

Prototype

public final StringProperty textProperty() 

Source Link

Document

The text to display in the label.

Usage

From source file:mesclasses.util.NodeUtil.java

public static Hyperlink buildEleveLink(Eleve eleve, StringProperty bindingProperty, String fromView) {
    Hyperlink link = new Hyperlink();
    link.textProperty().bind(bindingProperty);
    link.setOnAction((event) -> {//from  w  w w  . ja va  2s  . c o  m
        EventBusHandler.post(new OpenMenuEvent(Constants.ELEVE_RAPPORT_VIEW).setFromView(fromView));
        EventBusHandler.post(new SelectEleveEvent(eleve));
    });
    return link;
}