Example usage for javafx.scene.layout RowConstraints setPrefHeight

List of usage examples for javafx.scene.layout RowConstraints setPrefHeight

Introduction

In this page you can find the example usage for javafx.scene.layout RowConstraints setPrefHeight.

Prototype

public final void setPrefHeight(double value) 

Source Link

Usage

From source file:de.ks.text.AsciiDocEditor.java

public void hideActionBar() {
    RowConstraints rowConstraints = mainPane.getRowConstraints().get(1);
    rowConstraints.setMinHeight(0.0);//from   w  w w .j a v  a2s  . c  om
    rowConstraints.setPrefHeight(0.0);
    rowConstraints.setMaxHeight(0.0);
}

From source file:mesclasses.view.JourneeController.java

private void drawEleveName(SmartGrid grid, Eleve eleve, int rowIndex) {
    //index debute  1, le slot 0,X est rserv pour un separator dans le header
    grid.add(NodeUtil.buildEleveLink(eleve, eleve.lastNameProperty(), Constants.JOURNEE_VIEW), 1, rowIndex,
            HPos.LEFT);//from   ww w . ja  va2 s  . com

    grid.add(NodeUtil.buildEleveLink(eleve, eleve.firstNameProperty(), Constants.JOURNEE_VIEW), 2, rowIndex,
            HPos.LEFT);
    RowConstraints rc = new RowConstraints();
    rc.setMinHeight(35.0);
    rc.setPrefHeight(35.0);
    rc.setMaxHeight(35.0);
    grid.getRowConstraints().add(rc);
    if (!eleve.isInClasse(currentDate.getValue())) {
        grid.add(new Label("ne faisait pas partie de la classe  cette date"), 3, rowIndex,
                vieScolaireGrid.getGridWidth() - 3, 1);
    }
}