SimpleIntegerProperty is not a Property<Integer>
Jens Auer
Jens.Auer at h-d-gmbh.de
Wed Feb 15 15:59:27 UTC 2017
Hi,
I am wondering why SimpleIntegerProperty implements only Property<Number> and not Property<Integer>. This came up while using ReactFx where I tried to bind a Var<Integer> to a SimpleIntegerProperty and it fails to compile:
SimpleIntegerProperty s = null;
Var<Integer> v=null;;
v.bindBidirectional(s);
It turns out that this is due to the inheritance hierarchy and it also prevents code like
javafx.beans.property.Property<Integer> p;
javafx.beans.property.SimpleIntegerProperty s;
p = s;
Cheers,
Jens
Jens Auer
(Softwareentwicklung)
___________________________________________________________
Unternehmensberatung H & D GmbH
Niederlassung Weißenthurm
Werftstr. 5 - 56575 Weißenthurm
Tel.: 02637/94238 -110
Fax: 02637/94238 -149
michael.zimmer at h-d-gmbh.de<mailto:michael.zimmer at h-d-gmbh.de>
http://www.h-d-gmbh.de<http://www.h-d-gmbh.de/>
http://www.h-d-gmbh.de/impressum.html
___________________________________________________________
More information about the openjfx-dev
mailing list