Class Row

java.lang.Object
javafx.scene.layout.ConstraintsBase
javafx.scene.layout.RowConstraints
com.imyeyu.fx.utils.Row

public class Row extends javafx.scene.layout.RowConstraints
GridPane 行属性构造
Since:
2021-12-17 23:45
Author:
夜雨
  • Property Summary

    Properties inherited from class javafx.scene.layout.RowConstraints

    fillHeight, maxHeight, minHeight, percentHeight, prefHeight, valignment, vgrow
  • Field Summary

    Fields inherited from class javafx.scene.layout.ConstraintsBase

    CONSTRAIN_TO_PREF
  • Method Summary

    Modifier and Type
    Method
    Description
    行高总是保持跟随容器尺寸变化
    底部对齐
    static Row
    静态构造行属性对象
    static Row
    build(javafx.geometry.VPos align)
    静态构造行属性对象
    居中对齐
    保持子组件高度填充
    height(double height)
    设置高度
    max(double maxHeight)
    设置最大高度
    min(double minHeight)
    设置最小高度
    行高总是不保持跟随容器尺寸变化
    子组件高度不需填充
    percentHeight(double percentHeight)
    以百分比设置高度
    行高不受其他行影响时可跟随容器尺寸变化
    top()
    顶部对齐

    Methods inherited from class javafx.scene.layout.RowConstraints

    fillHeightProperty, getMaxHeight, getMinHeight, getPercentHeight, getPrefHeight, getValignment, getVgrow, isFillHeight, maxHeightProperty, minHeightProperty, percentHeightProperty, prefHeightProperty, setFillHeight, setMaxHeight, setMinHeight, setPercentHeight, setPrefHeight, setValignment, setVgrow, toString, valignmentProperty, vgrowProperty

    Methods inherited from class javafx.scene.layout.ConstraintsBase

    requestLayout

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Method Details

    • min

      public Row min(double minHeight)
      设置最小高度
      Parameters:
      minHeight - 最小高度
      Returns:
      本实例
    • max

      public Row max(double maxHeight)
      设置最大高度
      Parameters:
      maxHeight - 最大高度
      Returns:
      本实例
    • height

      public Row height(double height)
      设置高度
      Parameters:
      height - 高度
      Returns:
      本实例
    • percentHeight

      public Row percentHeight(double percentHeight)
      以百分比设置高度
      Parameters:
      percentHeight - 高度
      Returns:
      本实例
    • fill

      public Row fill()
      保持子组件高度填充
      Returns:
      本实例
    • notFill

      public Row notFill()
      子组件高度不需填充
      Returns:
      本实例
    • top

      public Row top()
      顶部对齐
      Returns:
      本实例
    • center

      public Row center()
      居中对齐
      Returns:
      本实例
    • bottom

      public Row bottom()
      底部对齐
      Returns:
      本实例
    • alwaysPriority

      public Row alwaysPriority()
      行高总是保持跟随容器尺寸变化
      Returns:
      本实例
    • neverPriority

      public Row neverPriority()
      行高总是不保持跟随容器尺寸变化
      Returns:
      本实例
    • sometimesPriority

      public Row sometimesPriority()
      行高不受其他行影响时可跟随容器尺寸变化
      Returns:
      本实例
    • build

      public static Row build()
      静态构造行属性对象
      Returns:
      行属性对象
    • build

      public static Row build(javafx.geometry.VPos align)
      静态构造行属性对象
      Parameters:
      align - 垂直对齐方式
      Returns:
      本实例