API Review: Allow POJOs as root in SelectBinding

Michael Heinrichs michael.heinrichs at oracle.com
Mon Sep 17 05:16:52 PDT 2012


The JIRA issue to track this is: http://javafx-jira.kenai.com/browse/RT-19049



On 17.09.2012, at 14:02, Michael Heinrichs wrote:

> 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