GridPane.
 If a RowConstraints object is added for a row in a gridpane, the gridpane
 will use those constraint values when computing the row's height and layout.
 For example, to create a GridPane with 10 rows 50 pixels tall:
     GridPane gridpane = new GridPane();
     for (int i = 0; i < 10; i++) {
         RowConstraints row = new RowConstraints(50);
         gridpane.getRowConstraints().add(row);
     }
 
     GridPane gridpane = new GridPane();
     RowConstraints row1 = new RowConstraints();
     row1.setPercentHeight(25);
     RowConstraints row2 = new RowConstraints();
     row2.setPercentHeight(50);
     RowConstraints row3 = new RowConstraints();
     row3.setPercentHeight(25);
     gridpane.getRowConstraints().addAll(row1,row2,row3);
 - Since:
- JavaFX 2.0
- 
Property SummaryPropertiesTypePropertyDescriptionfinal BooleanPropertyThe vertical fill policy for the row.final DoublePropertyThe maximum height for the row.final DoublePropertyThe minimum height for the row.final DoublePropertyThe height percentage of the row.final DoublePropertyThe preferred height for the row.final ObjectProperty<VPos>The vertical alignment for the row.final ObjectProperty<Priority>The vertical grow priority for the row.
- 
Field SummaryFields declared in class javafx.scene.layout.ConstraintsBaseCONSTRAIN_TO_PREF
- 
Constructor SummaryConstructorsConstructorDescriptionCreates a row constraints object with no properties set.RowConstraints(double height) Creates a row constraint object with a fixed height.RowConstraints(double minHeight, double prefHeight, double maxHeight) Creates a row constraint object with a fixed size range.RowConstraints(double minHeight, double prefHeight, double maxHeight, Priority vgrow, VPos valignment, boolean fillHeight) Creates a row constraint object with a fixed size range, vertical grow priority, vertical alignment, and vertical fill behavior.
- 
Method SummaryModifier and TypeMethodDescriptionfinal BooleanPropertyThe vertical fill policy for the row.final doubleGets the value of the property maxHeight.final doubleGets the value of the property minHeight.final doubleGets the value of the property percentHeight.final doubleGets the value of the property prefHeight.final VPosGets the value of the property valignment.final PrioritygetVgrow()Gets the value of the property vgrow.final booleanGets the value of the property fillHeight.final DoublePropertyThe maximum height for the row.final DoublePropertyThe minimum height for the row.final DoublePropertyThe height percentage of the row.final DoublePropertyThe preferred height for the row.final voidsetFillHeight(boolean value) Sets the value of the property fillHeight.final voidsetMaxHeight(double value) Sets the value of the property maxHeight.final voidsetMinHeight(double value) Sets the value of the property minHeight.final voidsetPercentHeight(double value) Sets the value of the property percentHeight.final voidsetPrefHeight(double value) Sets the value of the property prefHeight.final voidsetValignment(VPos value) Sets the value of the property valignment.final voidSets the value of the property vgrow.toString()Returns a string representation of thisRowConstraintsobject.final ObjectProperty<VPos>The vertical alignment for the row.final ObjectProperty<Priority>The vertical grow priority for the row.Methods declared in class javafx.scene.layout.ConstraintsBaserequestLayout
- 
Property Details- 
minHeightThe minimum height for the row. This property is ignored if percentHeight is set.The default value is USE_COMPUTED_SIZE, which means the minimum height will be computed to be the largest minimum height of the row's content. - See Also:
 
- 
prefHeightThe preferred height for the row. This property is ignored if percentHeight is set.The default value is USE_COMPUTED_SIZE, which means the preferred height will be computed to be the largest preferred height of the row's content. - See Also:
 
- 
maxHeightThe maximum height for the row. This property is ignored if percentHeight is set.The default value is USE_COMPUTED_SIZE, which means the maximum height will be computed to be the smallest maximum height of the row's content. - See Also:
 
- 
percentHeightThe height percentage of the row. If set to a value greater than 0, the row will be resized to that percentage of the available gridpane height and the other size constraints (minHeight, prefHeight, maxHeight, vgrow) will be ignored. The default value is -1, which means the percentage will be ignored.- See Also:
 
- 
vgrowThe vertical grow priority for the row. If set, the gridpane will use this priority to determine whether the row should be given any additional height if the gridpane is resized larger than its preferred height. This property is ignored if percentHeight is set.This default value is null, which means that the row's grow priority will be derived from largest grow priority set on a content node. - See Also:
 
- 
valignmentThe vertical alignment for the row. If set, will be the default vertical alignment for nodes contained within the row. If this property is set to VPos.BASELINE, then the fillHeight property will be ignored and nodes will always be resized to their preferred heights.- See Also:
 
- 
fillHeightThe vertical fill policy for the row. The gridpane will use this property to determine whether nodes contained within the row should be expanded to fill the row's height or kept to their preferred heights.The default value is true. - See Also:
 
 
- 
- 
Constructor Details- 
RowConstraintspublic RowConstraints()Creates a row constraints object with no properties set.
- 
RowConstraintspublic RowConstraints(double height) Creates a row constraint object with a fixed height. This is a convenience for setting the preferred height constraint to the fixed value and the minHeight and maxHeight constraints to the USE_PREF_SIZE flag to ensure the row is always that height.- Parameters:
- height- the height of the row
 
- 
RowConstraintspublic RowConstraints(double minHeight, double prefHeight, double maxHeight) Creates a row constraint object with a fixed size range. This is a convenience for setting the minimum, preferred, and maximum height constraints.- Parameters:
- minHeight- the minimum height
- prefHeight- the preferred height
- maxHeight- the maximum height
 
- 
RowConstraintspublic RowConstraints(double minHeight, double prefHeight, double maxHeight, Priority vgrow, VPos valignment, boolean fillHeight) Creates a row constraint object with a fixed size range, vertical grow priority, vertical alignment, and vertical fill behavior.- Parameters:
- minHeight- the minimum height
- prefHeight- the preferred height
- maxHeight- the maximum height
- vgrow- the vertical grow priority
- valignment- the vertical alignment
- fillHeight- the vertical fill behavior
 
 
- 
- 
Method Details- 
setMinHeightpublic final void setMinHeight(double value) Sets the value of the property minHeight.- Property description:
- The minimum height for the row.
 This property is ignored if percentHeight is set.
 The default value is USE_COMPUTED_SIZE, which means the minimum height will be computed to be the largest minimum height of the row's content. 
 
- 
getMinHeightpublic final double getMinHeight()Gets the value of the property minHeight.- Property description:
- The minimum height for the row.
 This property is ignored if percentHeight is set.
 The default value is USE_COMPUTED_SIZE, which means the minimum height will be computed to be the largest minimum height of the row's content. 
 
- 
minHeightPropertyThe minimum height for the row. This property is ignored if percentHeight is set.The default value is USE_COMPUTED_SIZE, which means the minimum height will be computed to be the largest minimum height of the row's content. - See Also:
 
- 
setPrefHeightpublic final void setPrefHeight(double value) Sets the value of the property prefHeight.- Property description:
- The preferred height for the row.
 This property is ignored if percentHeight is set.
 The default value is USE_COMPUTED_SIZE, which means the preferred height will be computed to be the largest preferred height of the row's content. 
 
- 
getPrefHeightpublic final double getPrefHeight()Gets the value of the property prefHeight.- Property description:
- The preferred height for the row.
 This property is ignored if percentHeight is set.
 The default value is USE_COMPUTED_SIZE, which means the preferred height will be computed to be the largest preferred height of the row's content. 
 
- 
prefHeightPropertyThe preferred height for the row. This property is ignored if percentHeight is set.The default value is USE_COMPUTED_SIZE, which means the preferred height will be computed to be the largest preferred height of the row's content. - See Also:
 
- 
setMaxHeightpublic final void setMaxHeight(double value) Sets the value of the property maxHeight.- Property description:
- The maximum height for the row.
 This property is ignored if percentHeight is set.
 The default value is USE_COMPUTED_SIZE, which means the maximum height will be computed to be the smallest maximum height of the row's content. 
 
- 
getMaxHeightpublic final double getMaxHeight()Gets the value of the property maxHeight.- Property description:
- The maximum height for the row.
 This property is ignored if percentHeight is set.
 The default value is USE_COMPUTED_SIZE, which means the maximum height will be computed to be the smallest maximum height of the row's content. 
 
- 
maxHeightPropertyThe maximum height for the row. This property is ignored if percentHeight is set.The default value is USE_COMPUTED_SIZE, which means the maximum height will be computed to be the smallest maximum height of the row's content. - See Also:
 
- 
setPercentHeightpublic final void setPercentHeight(double value) Sets the value of the property percentHeight.- Property description:
- The height percentage of the row. If set to a value greater than 0, the row will be resized to that percentage of the available gridpane height and the other size constraints (minHeight, prefHeight, maxHeight, vgrow) will be ignored. The default value is -1, which means the percentage will be ignored.
 
- 
getPercentHeightpublic final double getPercentHeight()Gets the value of the property percentHeight.- Property description:
- The height percentage of the row. If set to a value greater than 0, the row will be resized to that percentage of the available gridpane height and the other size constraints (minHeight, prefHeight, maxHeight, vgrow) will be ignored. The default value is -1, which means the percentage will be ignored.
 
- 
percentHeightPropertyThe height percentage of the row. If set to a value greater than 0, the row will be resized to that percentage of the available gridpane height and the other size constraints (minHeight, prefHeight, maxHeight, vgrow) will be ignored. The default value is -1, which means the percentage will be ignored.- See Also:
 
- 
setVgrowSets the value of the property vgrow.- Property description:
- The vertical grow priority for the row.  If set, the gridpane will
 use this priority to determine whether the row should be given any
 additional height if the gridpane is resized larger than its preferred height.
 This property is ignored if percentHeight is set.
 This default value is null, which means that the row's grow priority will be derived from largest grow priority set on a content node. 
 
- 
getVgrowGets the value of the property vgrow.- Property description:
- The vertical grow priority for the row.  If set, the gridpane will
 use this priority to determine whether the row should be given any
 additional height if the gridpane is resized larger than its preferred height.
 This property is ignored if percentHeight is set.
 This default value is null, which means that the row's grow priority will be derived from largest grow priority set on a content node. 
 
- 
vgrowPropertyThe vertical grow priority for the row. If set, the gridpane will use this priority to determine whether the row should be given any additional height if the gridpane is resized larger than its preferred height. This property is ignored if percentHeight is set.This default value is null, which means that the row's grow priority will be derived from largest grow priority set on a content node. - See Also:
 
- 
setValignmentSets the value of the property valignment.- Property description:
- The vertical alignment for the row. If set, will be the default vertical alignment for nodes contained within the row. If this property is set to VPos.BASELINE, then the fillHeight property will be ignored and nodes will always be resized to their preferred heights.
 
- 
getValignmentGets the value of the property valignment.- Property description:
- The vertical alignment for the row. If set, will be the default vertical alignment for nodes contained within the row. If this property is set to VPos.BASELINE, then the fillHeight property will be ignored and nodes will always be resized to their preferred heights.
 
- 
valignmentPropertyThe vertical alignment for the row. If set, will be the default vertical alignment for nodes contained within the row. If this property is set to VPos.BASELINE, then the fillHeight property will be ignored and nodes will always be resized to their preferred heights.- See Also:
 
- 
setFillHeightpublic final void setFillHeight(boolean value) Sets the value of the property fillHeight.- Property description:
- The vertical fill policy for the row.  The gridpane will
 use this property to determine whether nodes contained within the row
 should be expanded to fill the row's height or kept to their preferred heights.
 The default value is true. 
 
- 
isFillHeightpublic final boolean isFillHeight()Gets the value of the property fillHeight.- Property description:
- The vertical fill policy for the row.  The gridpane will
 use this property to determine whether nodes contained within the row
 should be expanded to fill the row's height or kept to their preferred heights.
 The default value is true. 
 
- 
fillHeightPropertyThe vertical fill policy for the row. The gridpane will use this property to determine whether nodes contained within the row should be expanded to fill the row's height or kept to their preferred heights.The default value is true. - See Also:
 
- 
toStringReturns a string representation of thisRowConstraintsobject.
 
-