javafx.scene.layout.Region.setMaxHeight()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(1.6k)|赞(0)|评价(0)|浏览(60)

本文整理了Java中javafx.scene.layout.Region.setMaxHeight方法的一些代码示例,展示了Region.setMaxHeight的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Region.setMaxHeight方法的具体详情如下:
包路径:javafx.scene.layout.Region
类名称:Region
方法名:setMaxHeight

Region.setMaxHeight介绍

暂无

代码示例

代码示例来源:origin: jfoenixadmin/JFoenix

((Region) cellContent).setMaxHeight(cellContent.prefHeight(-1));
setGraphic(cellContent);

代码示例来源:origin: org.jfxtras/jfxtras-common

/**
 * 
 */
static public void overrideMaxHeight(Node node, C c)
{
  // just to prevent problems
  if (node == null) return;
  
  // make max issues go away
  if (node instanceof javafx.scene.layout.Region)
  {
    javafx.scene.layout.Region lRegion = (javafx.scene.layout.Region)node;
    lRegion.setMaxHeight( c.maxHeight >= 0 ? c.maxHeight : Double.MAX_VALUE);
  }
}

代码示例来源:origin: org.jfxtras/jfxtras-common

/**
 * @param node
 */
protected void apply(Node node)
{
  if (node instanceof javafx.scene.layout.Region)
  {
    javafx.scene.layout.Region lRegion = (javafx.scene.layout.Region)node;
    
    // setup the reset values on the first apply
    rememberResetValues(lRegion);
    
    // either set or reset values
    lRegion.setMinWidth(minWidth >= 0 ? minWidth : minWidthReset);
    lRegion.setPrefWidth(prefWidth >= 0 ? prefWidth : prefWidthReset);
    lRegion.setMaxWidth(maxWidth >= 0 ? maxWidth : maxWidthReset);
    lRegion.setMinHeight(minHeight >= 0 ? minHeight : minHeightReset);
    lRegion.setPrefHeight(prefHeight >= 0 ? prefHeight : prefHeightReset);
    lRegion.setMaxHeight(maxHeight >= 0 ? maxHeight : maxHeightReset);
  }
}

代码示例来源:origin: net.sf.dcutils/dcutils

region.setMaxHeight(maxHeight);

代码示例来源:origin: com.jfoenix/jfoenix

((Region) cellContent).setMaxHeight(cellContent.prefHeight(-1));
setGraphic(cellContent);

相关文章

微信公众号

最新文章

更多