API Review: Allow POJOs as root in SelectBinding
Michael Heinrichs
michael.heinrichs at oracle.com
Mon Sep 17 05:02:19 PDT 2012
Hi,
I am working on a feature request to allow the usage of POJOs in SelectBindings (e.g. Bindings.select(myNode, "boundsInLocal", "minX"). As I also want to allow POJOs as the root of a SelectBinding, I plan to add the following methods in the class Bindings:
public static <T> ObjectBinding<T> select(Object root, String... steps)
public static DoubleBinding selectDouble(Object root, String... steps)
public static FloatBinding selectFloat(Object root, String... steps)
public static IntegerBinding selectInteger(Object root, String... steps)
public static LongBinding selectLong(Object root, String... steps)
public static BooleanBinding selectBoolean(Object root, String... steps)
public static StringBinding selectString(Object root, String... steps)
The current select-methods, that only accept an ObservableValue<?> for the root, will be marked as deprecated and should be removed when we do an incompatible update of the JavaFX API.
Thanks,
Michael
More information about the openjfx-dev
mailing list