-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 12/21/2010 08:06 AM, Greg Brown wrote:
> OK, now I get it. Groovy allows you to do something similar. However, I 
> believe this approach requires creating "builder" classes, correct? 

More or less.  My approach uses Scala implicits to (effectively) add
methods to Pivot classes like Component and Container.  It's basic, but
could be extended into a real Scala-Pivot binding using builder-type
objects or methods for more things.

> BXML offers a similar capability, but without the need for builders:

No doubt, I don't mean to knock the XML-based approach at all - it
clearly works for lots of people.  It's just that I, like the OP it
seems, prefer doing things programmatically (especially with Scala) to
detect more errors statically.

> 
> <Window>
>   <BoxPane>
>     <Label text="here's a Label inside a BoxPane inside a Window"/>
>   </BoxPane>
> </Window>
> 
> You can also define event listeners in BXML.
> 
> However, I see value in both approaches, I think a Scala builder library 
> would be a great addition to the platform. By all means, please consider 
> submitting it if you would like.
> 
> On Dec 21, 2010, at 12:42 AM, Gilbert, Clint wrote:
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAk0RWi0ACgkQ0GFaTS4nYxu5VACfQ5+GrQjgOKbU7+9GYir9y0st
VSAAn1lf53433b/9iQhxAvRaRQu/y2hB
=/ciH
-----END PGP SIGNATURE-----

Reply via email to