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

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

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

Region.backgroundProperty介绍

暂无

代码示例

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

pickerColorClip.backgroundProperty().bind(Bindings.createObjectBinding(() -> {
  return new Background(new BackgroundFill(Color.WHITE,
    colorBox.backgroundProperty()

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

tabsHeader.backgroundProperty().unbind();
JFXFillTransition fillTransition = new JFXFillTransition(Duration.millis(240),
  pane,
paraTransition = new ParallelTransition(fillTransition, tabsFillTransition);
paraTransition.setOnFinished((finish) -> {
  tabsHeader.backgroundProperty().bind(Bindings.createObjectBinding(() -> {
    return new Background(new BackgroundFill(newVal.getFill(), CornerRadii.EMPTY, Insets.EMPTY));
  }, newVal.fillProperty()));
  Region tabsHeader = (Region) tabs.lookup(".tab-header-background");
  pane.backgroundProperty().unbind();
  tabsHeader.backgroundProperty().unbind();
  tabsHeader.backgroundProperty().bind(Bindings.createObjectBinding(() -> {
    return new Background(new BackgroundFill(curvedColorPicker.selectedPath.get().getFill(),
      CornerRadii.EMPTY,

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

pickerColorClip.backgroundProperty().bind(Bindings.createObjectBinding(() -> {
  return new Background(new BackgroundFill(Color.WHITE,
    colorBox.backgroundProperty()

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

tabsHeader.backgroundProperty().unbind();
JFXFillTransition fillTransition = new JFXFillTransition(Duration.millis(240),
  pane,
paraTransition = new ParallelTransition(fillTransition, tabsFillTransition);
paraTransition.setOnFinished((finish) -> {
  tabsHeader.backgroundProperty().bind(Bindings.createObjectBinding(() -> {
    return new Background(new BackgroundFill(newVal.getFill(), CornerRadii.EMPTY, Insets.EMPTY));
  }, newVal.fillProperty()));
  Region tabsHeader = (Region) tabs.lookup(".tab-header-background");
  pane.backgroundProperty().unbind();
  tabsHeader.backgroundProperty().unbind();
  tabsHeader.backgroundProperty().bind(Bindings.createObjectBinding(() -> {
    return new Background(new BackgroundFill(curvedColorPicker.selectedPath.get().getFill(),
      CornerRadii.EMPTY,

相关文章

微信公众号

最新文章

更多