Search in the blog:

2008-01-18

Java object binding (для JavaFX)

Несколько удивительный костылеобразностью пример: http://jfx.wikia.com/wiki/Binding_to_a_POJO

А ничего удивительного. Как отвечает Christopher Oliver на вопрос "а попроще можно было?":

===
Unfortunately, it just wouldn't work, in general - Java Beans don't
have the concept of optional attributes. In addition, they don't have
proper support for multi-valued attributes (PropertyChangeEvents are
only "replace" events, "insert" and "delete" events are also required
to support bind). For this reason I chose not to support bind-ing
Java objects, since you'd be unpleasantly surprised when your
bindings didn't work as expected.
===

0 comments:

Post a Comment

Blog Archive