Example usage for javafx.scene.control TitledPane setDisable

List of usage examples for javafx.scene.control TitledPane setDisable

Introduction

In this page you can find the example usage for javafx.scene.control TitledPane setDisable.

Prototype

public final void setDisable(boolean value) 

Source Link

Usage

From source file:mesclasses.view.RapportEleveController.java

private void handlePaneTitle(TitledPane pane, long count, String sing, String plur) {
    if (count == 0) {
        pane.setText(0 + " " + sing);
        pane.setDisable(true);
        return;//from  w  w  w  .  j  a v a  2  s. c o m
    }
    pane.setDisable(false);
    if (count == 1) {
        pane.setText(1 + " " + sing);
        return;
    }
    pane.setText(count + " " + plur);
}