Example usage for javafx.scene.layout RowConstraints setMaxHeight

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

Introduction

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

Prototype

public final void setMaxHeight(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  va  2 s . com*/
    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 w w  w.  ja v  a  2s . co m*/

    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);
    }
}