本文整理了Java中javafx.scene.layout.Region.backgroundProperty
方法的一些代码示例,展示了Region.backgroundProperty
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Region.backgroundProperty
方法的具体详情如下:
包路径:javafx.scene.layout.Region
类名称: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,
内容来源于网络,如有侵权,请联系作者删除!