question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

tresholdProperty can not be used with binding

See original GitHub issue

Given 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:closed
  • Created 3 years ago
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
HanSolocommented, Jan 6, 2021

fixed with version 11.46

0reactions
FDelportecommented, Jan 7, 2021

fixed, see pull request

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found