Re: Property binding

2010-07-19 Thread Greg Brown
I can see some validity to that argument. On the other hand, since Pivot has another means of data binding that is better suited to the use case you describe, I think it makes sense to leave the namespace binding feature as-is and see how it ends up being used. What you describe could easily be

Re: Property binding

2010-07-19 Thread Michael Allman
On Mon, 19 Jul 2010, Greg Brown wrote: What about properties of properties of objects---like ${obj.prop.subprop}? If the "obj.prop" value changes, do the binding listeners get notified? No, because those listeners have indicated that the property they care about is "subprop". They don't nec

Re: Property binding

2010-07-19 Thread Greg Brown
>>> What about properties of properties of objects---like ${obj.prop.subprop}? >>> If the "obj.prop" value changes, do the binding listeners get notified? >> >> No, because those listeners have indicated that the property they care about >> is "subprop". They don't necessarily know or care that

Re: Property binding

2010-07-19 Thread Michael Allman
On Fri, 16 Jul 2010, Greg Brown wrote: I've finally had a chance to take a good look at this. This looks fine for the use case it covers, that is, properties of objects which observe some kind of event listener design (don't know the details). What about properties of properties of objects---

Re: Property binding

2010-07-16 Thread Greg Brown
> I've finally had a chance to take a good look at this. This looks fine for > the use case it covers, that is, properties of objects which observe some > kind of event listener design (don't know the details). What about > properties of properties of objects---like ${obj.prop.subprop}? If th

Re: Property binding

2010-07-16 Thread Michael Allman
I've finally had a chance to take a good look at this. This looks fine for the use case it covers, that is, properties of objects which observe some kind of event listener design (don't know the details). What about properties of properties of objects---like ${obj.prop.subprop}? If the "obj.

Re: Property binding

2010-07-14 Thread Greg Brown
I moved it to the tutorials project: http://svn.apache.org/repos/asf/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/databinding/property_binding.bxml http://svn.apache.org/repos/asf/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/databinding/PropertyBinding.java On Jul 14, 2010, at 12:

Re: Property binding

2010-07-13 Thread Michael Allman
Greg, I get a 404 when I go to the source code URL. Can you check it please? Michael On Fri, 9 Jul 2010, Greg Brown wrote: Hi all, This feature is now complete. BXMLSerializer now supports dynamic namespace binding via the syntax I suggested in my earlier email. You can see a demo here:

Re: Property binding

2010-07-10 Thread Greg Brown
Namespace bindings are evaluated after all object references have been defined, so there is no order dependency. This facilitates the two-way binding shown in the demo. You apply bindings manually in code using an instance of NamespaceBinding, or you can do it in BXML as described below. See th

Re: Re: Property binding

2010-07-10 Thread aappddeevv
Looks good. When is the binding evaluated? If I have an include in my bxml file and the object with the binding expression is buried in a few layers of component (border wrapping a boxpane wrapping a label) will the binding pickup the objects defined in the include file? Do I have to make sure

Re: Property binding

2010-07-09 Thread Greg Brown
Hi all, This feature is now complete. BXMLSerializer now supports dynamic namespace binding via the syntax I suggested in my earlier email. You can see a demo here: http://ixnay.biz/pivot-demos/namespace-binding.html The source code is here: http://svn.apache.org/repos/asf/pivot/trunk/dem

Re: Property binding

2010-07-08 Thread Greg Brown
FYI, I have just checked in initial support for this feature. I haven't hooked it in to BXMLSerializer yet, but you can see it in action here: http://svn.apache.org/repos/asf/pivot/trunk/demos/src/org/apache/pivot/demos/binding/ On Jul 5, 2010, at 3:45 PM, Greg Brown wrote: > Another question

Re: Property binding

2010-07-05 Thread Michael Allman
I've been working on a prototype but it's a big job and I've got "real" work to do. I've implemented an annotation and an annotation processor that creates a property change dispatcher for an annotated property through bytecode enhancement of a setter. It doesn't use reflection and it support