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

x33g5p2x  于2022-01-31 转载在 其他  
字(1.2k)|赞(0)|评价(0)|浏览(222)

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

VBox.getVgrow介绍

暂无

代码示例

代码示例来源:origin: no.tornado/tornadofx-controls

  1. protected void syncVgrowConstraints(){
  2. getInputContainer().getChildren().stream()
  3. .filter( n -> VBox.getVgrow(n) != null )
  4. .findFirst( )
  5. .ifPresent( Field.this::syncVgrowConstraints);
  6. }

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

  1. /**
  2. * @param node
  3. */
  4. protected void rememberResetValues(Node node)
  5. {
  6. super.rememberResetValues(node);
  7. vgrowReset = javafx.scene.layout.VBox.getVgrow(node);
  8. marginReset = javafx.scene.layout.VBox.getMargin(node);
  9. }

代码示例来源:origin: no.tornado/tornadofx-controls

  1. private void syncVgrowConstraints(Node inputNode){
  2. Priority priority = VBox.getVgrow(inputNode);
  3. Field parentField = NodeHelper.findParentOfType(inputNode,Field.class);
  4. if( parentField != null ){
  5. VBox.setVgrow( parentField, priority );
  6. if( parentField.getFieldSet() != null ){
  7. VBox.setVgrow( parentField.getFieldset(), priority );
  8. }
  9. }
  10. }

代码示例来源:origin: no.tornado/tornadofx-controls

  1. if( VBox.getVgrow(node) != null ) {
  2. syncVgrowConstraints(node);

相关文章