tresholdProperty can not be used with binding
See original GitHub issueGiven following code:
DoubleProperty temperature = new SimpleDoubleProperty();
DoubleProperty temperatureTarget = new SimpleDoubleProperty();
var tempTile = TileBuilder.create()
.skinType(Tile.SkinType.GAUGE)
.prefSize(200, 200)
.title("Temperature")
.unit("°C")
.maxValue(150)
.build();
tempTile.valueProperty().bind(temperature);
tempTile.tresholdProperty().bind(temperatureTarget);
Any change in temperature is showing as expected in the tile.
But the tresholdProperty throws:
Exception in thread "JavaFX Application Thread" java.lang.RuntimeException: Tile.threshold : A bound value cannot be set.
at javafx.base/javafx.beans.property.DoublePropertyBase.set(DoublePropertyBase.java:144)
at eu.hansolo.tilesfx.Tile.setThreshold(Tile.java:1363)
at eu.hansolo.tilesfx.Tile.setMaxValue(Tile.java:1283)
at eu.hansolo.tilesfx.Tile.calcAutoScale(Tile.java:4240)
at eu.hansolo.tilesfx.skins.GaugeTileSkin.initGraphics(GaugeTileSkin.java:95)
at eu.hansolo.tilesfx.skins.TileSkin.<init>(TileSkin.java:132)
at eu.hansolo.tilesfx.skins.GaugeTileSkin.<init>(GaugeTileSkin.java:86)
at eu.hansolo.tilesfx.Tile.createDefaultSkin(Tile.java:6200)
Issue Analytics
- State:
- Created 3 years ago
- Comments:11 (11 by maintainers)
Top Results From Across the Web
A 'Binding' cannot be set on the 'Source' property of type ...
Binding's property Source can't be bound because it is not a Dependency Property. Are sure you don't want to do this? : {Binding...
Read more >What are the Common Binding Machine Problems and How to ...
If the machine is jammed due to paper chips, you can use something thin to clear away the debris. 4.) The device didn't...
Read more >Let's Build Honeymoon a Tinder-Like iOS App with SwiftUI
How hard is it to create an iOS mobile application with Tinder-like gestures? You will pick up some handy SwiftUI ... How does...
Read more >sigrok-devel Mailing List for sigrok (Page 6) - SourceForge
The official SCPI command set does not specify to use a POD >> index for SCPI ... Error at CMakeLists.txt:86 (message): > libsigrok...
Read more >Small Doc corrections - Hashicorp/Terraform-Aws-Vault - IssueHint
Also in vault-examples-helper.sh if cluster is Private, no IPs will be printed ... tresholdProperty can not be used with binding, 11, 2021-01-05, 2022-08-07....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
fixed with version 11.46
fixed, see pull request