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

x33g5p2x  于2022-01-16 转载在 其他  
字(6.0k)|赞(0)|评价(0)|浏览(168)

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

BorderPane.centerProperty介绍

暂无

代码示例

代码示例来源:origin: at.bestsolution.efxclipse.rt/org.eclipse.fx.ui.controls

/**
 * Property to put the content to
 * 
 * @return the property
 */
protected ObjectProperty<Node> contentProperty() {
  return this.trimPane.centerProperty();
}

代码示例来源:origin: at.bestsolution.eclipse/org.eclipse.fx.ui.controls

/**
 * Property to put the content to
 * 
 * @return the property
 */
protected ObjectProperty<Node> contentProperty() {
  return this.trimPane.centerProperty();
}

代码示例来源:origin: at.bestsolution.efxclipse.rt/org.eclipse.fx.ui.controls

@SuppressWarnings("null")
@Override
public @NonNull ObjectProperty<@Nullable Node> getDialogContentNodeProperty() {
  return this.clientAreaContainer.centerProperty();
}

代码示例来源:origin: at.bestsolution.eclipse/org.eclipse.fx.ui.controls

@SuppressWarnings("null")
@Override
public @NonNull ObjectProperty<@Nullable Node> getDialogContentNodeProperty() {
  return this.clientAreaContainer.centerProperty();
}

代码示例来源:origin: PhoenicisOrg/phoenicis

/**
 * {@inheritDoc}
 * <p>
 * TODO: Currently I need to add an additional inner container to bind the installationPanel property to.
 * TODO: It would be better to bind it directly to the center property of the outer BorderPane container
 */
@Override
protected Node createContent() {
  final BorderPane container = new BorderPane();
  container.centerProperty().bind(installationPanel);
  return container;
}

代码示例来源:origin: org.jrebirth.af.showcase/fonticon

/**
 * {@inheritDoc}
 */
@Override
protected void initSimpleView() {
  // node().setCenter(tabModel.node());
  // if (!this.hasShown.getAndSet(true)) {
  final FadeInOutWaveBean fiowb = FadeInOutWaveBean.create().showDuration(Duration.millis(4000));
  final Stream<Dockable> tabs = Stream.of(FontAwesome.class, EmojiOne.class, Icons525.class, WeatherIcons.class, Typicons.class)
                    .map(c -> Dockable.create()
                             .name(c.getSimpleName())
                             .modelKey(Key.createMulti(FontIconModel.class, c)));
  final TabbedPaneConfig cfg = TabbedPaneConfig.create()
                         .id("FontIcon")
                         .tabs(tabs.toArray(Dockable[]::new));
  attachUi(TabbedPaneModel.class, WBuilder.buildUiData(node().centerProperty(), fiowb, Collections.singletonList(cfg)).toArray(new WaveData[0]));
  // }
}

代码示例来源:origin: stackoverflow.com

bp1.centerProperty().addListener(new InvalidationListener() {
 @Override
 public void invalidated(Observable observable) {
bp2.centerProperty().addListener(new InvalidationListener() {
 @Override
 public void invalidated(Observable observable) {

代码示例来源:origin: at.bestsolution.efxclipse.rt/org.eclipse.fx.ui.controls

@SuppressWarnings("null")
@Override
protected Node createWindowArea() {
  BorderPane root = new BorderPane();
  getStyleClass().addAll("default-window", "decorated-root"); //$NON-NLS-1$ //$NON-NLS-2$
  Node dialogTitleBar = createTitleBar();
  this.dialogAreaNode = (TitleAreaNode) dialogTitleBar;
  registerTitleBar(dialogTitleBar);
  this.titleProperty = ((TitleAreaNode) dialogTitleBar).titleProperty();
  root.setTop(dialogTitleBar);
  dialogTitleBar.applyCss();
  sceneProperty().addListener((o) -> {
    Scene s = getScene();
    if (s != null) {
      if (s.getWindow() != null) {
        handleStageAttached();
      } else {
        s.windowProperty().addListener((o2) -> {
          if (s.getWindow() != null) {
            handleStageAttached();
          }
        });
      }
    }
  });
  this.trimPane = new BorderPane();
  root.setCenter(this.trimPane);
  this.contentProperty = this.trimPane.centerProperty();
  return root;
}

代码示例来源:origin: at.bestsolution.eclipse/org.eclipse.fx.ui.controls

@SuppressWarnings("null")
@Override
protected Node createWindowArea() {
  BorderPane root = new BorderPane();
  getStyleClass().addAll("default-window", "decorated-root"); //$NON-NLS-1$ //$NON-NLS-2$
  Node dialogTitleBar = createTitleBar();
  this.dialogAreaNode = (TitleAreaNode) dialogTitleBar;
  registerTitleBar(dialogTitleBar);
  this.titleProperty = ((TitleAreaNode) dialogTitleBar).titleProperty();
  root.setTop(dialogTitleBar);
  dialogTitleBar.applyCss();
  sceneProperty().addListener((o) -> {
    Scene s = getScene();
    if (s != null) {
      if (s.getWindow() != null) {
        handleStageAttached();
      } else {
        s.windowProperty().addListener((o2) -> {
          if (s.getWindow() != null) {
            handleStageAttached();
          }
        });
      }
    }
  });
  this.trimPane = new BorderPane();
  root.setCenter(this.trimPane);
  this.contentProperty = this.trimPane.centerProperty();
  return root;
}

代码示例来源:origin: at.bestsolution.efxclipse.rt/org.eclipse.fx.ui.controls

@SuppressWarnings("null")
@Override
protected Node createWindowArea() {
  BorderPane root = new BorderPane();
  getStyleClass().addAll("default-window", "decorated-root"); //$NON-NLS-1$ //$NON-NLS-2$
  Node dialogTitleBar = createTitleBar();
  this.dialogAreaNode = (TitleAreaNode) dialogTitleBar;
  registerTitleBar(dialogTitleBar);
  this.titleProperty = ((TitleAreaNode) dialogTitleBar).titleProperty();
  root.setTop(dialogTitleBar);
  dialogTitleBar.applyCss();
  sceneProperty().addListener((o) -> {
    Scene s = getScene();
    if (s != null) {
      if (s.getWindow() != null) {
        handleStageAttached();
      } else {
        s.windowProperty().addListener((o2) -> {
          if (s.getWindow() != null) {
            handleStageAttached();
          }
        });
      }
    }
  });
  this.trimPane = new BorderPane();
  root.setCenter(this.trimPane);
  this.contentProperty = this.trimPane.centerProperty();
  return root;
}

代码示例来源:origin: at.bestsolution.eclipse/org.eclipse.fx.ui.controls

@SuppressWarnings("null")
@Override
protected Node createWindowArea() {
  BorderPane root = new BorderPane();
  getStyleClass().addAll("default-window", "decorated-root"); //$NON-NLS-1$ //$NON-NLS-2$
  Node dialogTitleBar = createTitleBar();
  this.dialogAreaNode = (TitleAreaNode) dialogTitleBar;
  registerTitleBar(dialogTitleBar);
  this.titleProperty = ((TitleAreaNode) dialogTitleBar).titleProperty();
  root.setTop(dialogTitleBar);
  dialogTitleBar.applyCss();
  sceneProperty().addListener((o) -> {
    Scene s = getScene();
    if (s != null) {
      if (s.getWindow() != null) {
        handleStageAttached();
      } else {
        s.windowProperty().addListener((o2) -> {
          if (s.getWindow() != null) {
            handleStageAttached();
          }
        });
      }
    }
  });
  this.trimPane = new BorderPane();
  root.setCenter(this.trimPane);
  this.contentProperty = this.trimPane.centerProperty();
  return root;
}

相关文章